fallback: translate: sub i1

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: sub i1 M
Occurrences:3 in 3 configs, 3 test files, 21 more counted only
Snippet from:float-fcmp.145bf8de8c.ll (mutant of float-fcmp.ll) @fcmp_ueq via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zfinx -O0
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i32 @fcmp_ueq(float %a, float %b) #0 {
  %B = sub i1 false, false
  %1 = fcmp ueq float %a, %b
  %2 = zext i1 %1 to i32
  store i1 %B, ptr poison, align 1
  ret i32 %2
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: sub: '  %B = sub i1 false, false' (in function: fcmp_ueq)
warning: Instruction selection used fallback path for fcmp_ueq

Occurrences (3):

InputFunctionConfig
float-fcmp.145bf8de8c.ll (mutant of float-fcmp.ll)fcmp_ueq-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zfinx -O0
frameaddr-returnaddr.2c2e09bc95.ll (mutant of frameaddr-returnaddr.ll)test_frameaddress_0-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O0
half-fcmp-strict.c9af53426e.ll (mutant of half-fcmp-strict.ll)fcmps_olt-mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -disable-strictnode-mutation -mattr=+zhinx,+zbkb -O0

Generated 2026-11-29 14:49 UTC.