fallback: legalize: G_FCMP s32,s128

Run:explore-bc8218b282-20261015-075519
Kind:fallback
Category:legalize: G_FCMP s32,s128
Occurrences:9 in 4 configs, 5 test files
Snippet from:fp128.ll @test_load_and_cmp via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs
Local check:reproduces at bc8218b282
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@x = external local_unnamed_addr global fp128, align 16
@y = external local_unnamed_addr global fp128, align 16

; Function Attrs: nounwind
define i32 @test_load_and_cmp() #0 {
  %1 = load fp128, ptr @x, align 16
  %2 = load fp128, ptr @y, align 16
  %cmp = fcmp une fp128 %1, %2
  %3 = zext i1 %cmp to i32
  ret i32 %3
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %6:_(s32) = G_FCMP floatpred(une), %0:_(s128), %2:_ (in function: test_load_and_cmp)
warning: Instruction selection used fallback path for test_load_and_cmp

Occurrences (9):

InputFunctionConfig
fp128.lltest_load_and_cmp-mtriple=riscv32 -verify-machineinstrs
fp128.ab2ecbed3d.ll (mutant of fp128.ll)test_load_and_cmp-mtriple=riscv32 -verify-machineinstrs
legalize-fneg.30a945f419.ll (mutant of legalize-fneg.ll)test3-mtriple=riscv32 -verify-machineinstrs
llvm.frexp.bfe2c954c0.ll (mutant of llvm.frexp.ll)test_frexp_f128_i32-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32
llvm.frexp.e91397f906.ll (mutant of llvm.frexp.ll)test_frexp_f128_i32-mtriple=riscv32 -verify-machineinstrs
llvm.frexp.f720f11860.ll (mutant of llvm.frexp.ll)test_frexp_f128_i32-mtriple=riscv32 -mattr=+d -verify-machineinstrs -target-abi=ilp32d
lrint-conv.be48e4b6c1.ll (mutant of lrint-conv.ll)test_llrint_ixx_f128-mtriple=riscv32
lrint-conv.be48e4b6c1.ll (mutant of lrint-conv.ll)test_llrint_ixx_f128-mtriple=riscv32
musttail-indirect-args.33619a6eb5.ll (mutant of musttail-indirect-args.ll)caller_musttail_nine_indirect-mtriple=riscv32

Generated 2026-10-15 08:05 UTC.