fallback: translate: fcmp fp128

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: fcmp fp128 M
Occurrences:4 in 4 configs, 3 test files, 7 more counted only
Snippet from:fp128.1ca23ddb13.ll (mutant of fp128.ll) @fptoui_i32 via llvm-extract
Config:-mtriple=riscv32 -mattr=+zbs,+zfinx -O2 -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global i1

; Function Attrs: nounwind
define i32 @fptoui_i32(fp128 %x) #0 {
  %C = fcmp uno fp128 %x, %x
  %a = fptoui fp128 %x to i32
  store i1 %C, ptr @G.2, align 1
  ret i32 %a
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv32 -mattr=+zbs,+zfinx -O2 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+zbs,+zfinx -O2 -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: fcmp: '  %C = fcmp uno fp128 %x, %x' (in function: fptoui_i32)
warning: Instruction selection used fallback path for fptoui_i32

Occurrences (4):

InputFunctionConfig
double-intrinsics.f1b7cfc0b8.ll (mutant of double-intrinsics.ll)iszero_q_fpclass-mtriple=riscv64 -mattr=+zhinx -O1 -verify-machineinstrs
fp128.1ca23ddb13.ll (mutant of fp128.ll)fptoui_i32-mtriple=riscv32 -mattr=+zbs,+zfinx -O2 -verify-machineinstrs
fp128.1e08c18e99.ll (mutant of fp128.ll)fminimum-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zhinx -O2
fp128.9d5e3d5807.ll (mutant of fp128.ll)modf-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O3

Generated 2026-11-29 14:49 UTC.