fallback: legalize: G_SREM <2 x s64>

Run:main-04ca53e65f-20261014-105623
Kind:fallback
Category:legalize: G_SREM <2 x s64> NEW
Occurrences:2 in 2 configs, 1 test files
Snippet from:bfloat-imm.1a058564b4.ll (mutant of bfloat-imm.ll) @bfloat_zero via llvm-extract
Config:-mtriple=riscv32 -mattr=+zfbfmin -verify-machineinstrs -target-abi ilp32f
Local check:reproduces at 04ca53e65f
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global <2 x i64>

; Function Attrs: nounwind
define bfloat @bfloat_zero() #0 {
  %LGV = load <2 x i64>, ptr @G, align 16
  %B = srem <2 x i64> %LGV, splat (i64 9223372036854775807)
  store <2 x i64> %B, ptr poison, align 16
  ret bfloat 0.000000e+00
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv32 -mattr=+zfbfmin -verify-machineinstrs -target-abi ilp32f -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+zfbfmin -verify-machineinstrs -target-abi ilp32f -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %4:_(<2 x s64>) = G_SREM %0:_, %2:_ (in function: bfloat_zero)
warning: Instruction selection used fallback path for bfloat_zero

Occurrences (2):

InputFunctionConfig
bfloat-imm.1a058564b4.ll (mutant of bfloat-imm.ll)bfloat_zero-mtriple=riscv32 -mattr=+zfbfmin -verify-machineinstrs -target-abi ilp32f
bfloat-imm.9dce125dda.ll (mutant of bfloat-imm.ll)bfloat_zero-mtriple=riscv64 -mattr=+zfbfmin -verify-machineinstrs -target-abi lp64f

Generated 2026-10-15 08:05 UTC.