fallback: translate: fcmp fp128

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: fcmp fp128 M
Occurrences:8 in 8 configs, 4 test files, 17 more counted only
Snippet from:fp128.e4fd1c584f.ll (mutant of fp128.ll) @modf via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define { fp128, fp128 } @modf(fp128 %a) #0 {
  %C = fcmp ult fp128 %a, %a
  %result = call { fp128, fp128 } @llvm.modf.f128(fp128 %a)
  store i1 %C, ptr poison, align 1
  ret { fp128, fp128 } %result
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { fp128, fp128 } @llvm.modf.f128(fp128) #1

attributes #0 = { nounwind }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O1 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (8):

InputFunctionConfig
fp128.6d8f603057.ll (mutant of fp128.ll)ceil-mtriple=riscv32 -mattr=+zhinx,+zvkb -O3 -verify-machineinstrs
fp128.b654126279.ll (mutant of fp128.ll)maxnum-mtriple=riscv32 -mattr=+zhinx,+zicond -O3 -code-model=small -verify-machineinstrs
fp128.cf7bb9c247.ll (mutant of fp128.ll)powi-mtriple=riscv32 -mattr=+zfinx -O0 -verify-machineinstrs
fp128.d82ab44551.ll (mutant of fp128.ll)nearbyint-mtriple=riscv64 -mattr=+zfinx -O2 -verify-machineinstrs
fp128.e4fd1c584f.ll (mutant of fp128.ll)modf-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O1
fp128.fc05c5a8c9.ll (mutant of fp128.ll)fptosi_i128-mtriple=riscv64 -mattr=+zihintpause,+zdinx -O1 -code-model=medium -verify-machineinstrs
lrint-conv.0098b41bdd.ll (mutant of lrint-conv.ll)test_llrint_ixx_f128-mtriple=riscv64 -mattr=+zhinx -O2 -verify-machineinstrs
lround-llround.a0e81450a4.ll (mutant of lround-llround.ll)lround_f128-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zbkb -O1

Generated 2026-11-29 14:49 UTC.