fallback: translate: xor i1

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: xor i1 M
Occurrences:4 in 4 configs, 4 test files, 31 more counted only
Snippet from:float-fcmp.6e06e822cb.ll (mutant of float-fcmp.ll) @fcmp_ult via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zfinx -O3
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i32 @fcmp_ult(float %a, float %b) #0 {
  %B = xor i1 true, false
  %1 = fcmp ult 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 -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zfinx -O3 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (4):

InputFunctionConfig
analyze-branch.350c0d9fbe.ll (mutant of analyze-branch.ll)test_bcc_fallthrough_taken-mtriple=riscv32 -verify-machineinstrs -mattr=+c,+zdinx -O0
fixed-vectors-shuffle-exact-vlen.c80d2f1c.145adba0f5.ll (mutant of fixed-vectors-shuffle-exact-vlen.c80d2f1c.ll)m2_splat_into_slide_two_source-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zvkb -O0
float-fcmp.6e06e822cb.ll (mutant of float-fcmp.ll)fcmp_ult-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zfinx -O3
neg-abs.11a2c6ba30.ll (mutant of neg-abs.ll)expanded_neg_abs32_unsigned-mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zfinx -O2

Generated 2026-11-29 14:49 UTC.