fallback: translate: load i1

Run:main-db12fc36f6-20261127-110859
Kind:fallback
Category:translate: load i1 M
Occurrences:46 in 25 configs, 16 test files
Snippet from:half-frem.142196b8b6.ll (mutant of half-frem.ll) @frem_f16 via llvm-extract
Config:-mtriple=riscv64 -mattr=+zhinxmin -verify-machineinstrs -target-abi lp64
Local check:reproduces at db12fc36f6
Compiler Explorer:https://godbolt.org/z/PoG8EbKqc (llc-assertions-trunk, checked 2026-10-30 09:36 UTC): G falls back differently

Snippet:

@G = external global <8 x i8>
@G.1 = external global i1

; Function Attrs: nounwind
define half @frem_f16(half %a, half %b) #0 {
  %LGV1 = load i1, ptr @G.1, align 1
  %C = icmp sgt i1 %LGV1, false
  %LGV = load <8 x i8>, ptr @G, align 8
  %1 = frem half %a, %b
  %B = and <8 x i8> %LGV, splat (i8 -1)
  store <8 x i8> %B, ptr poison, align 8
  store i1 %C, ptr @G.1, align 1
  ret half %1
}

attributes #0 = { nounwind }

Compiler Explorer panes:

PaneOptionsExitInstsstderr
GlobalISel-mtriple=riscv64 -mattr=+zhinxmin -verify-machineinstrs -target-abi lp64 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.*046remark: <unknown>:0:0: unable to legalize instruction: %6:_(<8 x s8>) = G_LOAD %7:_(p0) :: (dereferenceable load (<8 x s8>) from @G) (in function: frem_f16)
warning: Instruction selection used fallback path for frem_f16
SelectionDAG (control)-mtriple=riscv64 -mattr=+zhinxmin -verify-machineinstrs -target-abi lp64 -global-isel=0046-

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: load: '  %LGV1 = load i1, ptr @G.1, align 1' (in function: frem_f16)
warning: Instruction selection used fallback path for frem_f16

Occurrences (46) (first 15):

InputFunctionConfig
double-br-fcmp.2242cf46f7.ll (mutant of double-br-fcmp.ll)br_fcmp_false-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs -target-abi=lp64
double-br-fcmp.bd659c4fa9.ll (mutant of double-br-fcmp.ll)br_fcmp_false-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32
double-frem.267c991b43.ll (mutant of double-frem.ll)frem_f64-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs
double-frem.5038852444.ll (mutant of double-frem.ll)frem_f64-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs
fastcc-without-f-reg.2008682e3b.ll (mutant of fastcc-without-f-reg.ll)caller_float-mtriple=riscv64 -mattr=+zhinx -verify-machineinstrs
fastcc-without-f-reg.503eba7ded.ll (mutant of fastcc-without-f-reg.ll)caller_float-mtriple=riscv64 -mattr=+zfinx -verify-machineinstrs
fastcc-without-f-reg.6594a5249c.ll (mutant of fastcc-without-f-reg.ll)caller_float-mtriple=riscv32 -mattr=+zfinx -verify-machineinstrs
fastcc-without-f-reg.8b791772fd.ll (mutant of fastcc-without-f-reg.ll)caller_float-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs
fastcc-without-f-reg.cf00941aad.ll (mutant of fastcc-without-f-reg.ll)caller_float-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs
fastcc-without-f-reg.f47fb7e4da.ll (mutant of fastcc-without-f-reg.ll)caller_float-mtriple=riscv32 -mattr=+zhinx -verify-machineinstrs
float-frem.421cf410d3.ll (mutant of float-frem.ll)frem_f32-mtriple=riscv32 -mattr=+zfinx -verify-machineinstrs
float-frem.755eeba4ac.ll (mutant of float-frem.ll)frem_f32-mtriple=riscv64 -mattr=+zfinx -verify-machineinstrs
float-imm.be24686b59.ll (mutant of float-imm.ll)float_positive_zero-mtriple=riscv32 -mattr=+zfinx -verify-machineinstrs -target-abi=ilp32
float-imm.f6b64828c8.ll (mutant of float-imm.ll)float_positive_zero-mtriple=riscv64 -mattr=+zfinx -verify-machineinstrs -target-abi=lp64
fold-addi-loadstore-zilsd.b2fff674b1.ll (mutant of fold-addi-loadstore-zilsd.ll)fold_addi_from_different_bb-mtriple=riscv32 -mattr=+zdinx,+zilsd -verify-machineinstrs -code-model=medium

Generated 2026-11-29 14:49 UTC.