fallback: translate: xor i32

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: xor i32 M
Occurrences:13 in 11 configs, 9 test files, 264 more counted only
Snippet from:half-select-icmp.080a92bbff.ll (mutant of half-select-icmp.ll) @select_icmp_ugt via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zhinxmin -O2
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define half @select_icmp_ugt(i32 signext %a, i32 signext %b, half %c, half %d) {
  %B = xor i32 %a, 65536
  %1 = icmp ugt i32 %a, %b
  %2 = select i1 %1, half %c, half %d
  store i32 %B, ptr poison, align 4
  ret half %2
}

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zhinxmin -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zhinxmin -O2 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: xor: '  %B = xor i32 %a, 65536' (in function: select_icmp_ugt)
warning: Instruction selection used fallback path for select_icmp_ugt

Occurrences (13):

InputFunctionConfig
abds.6ff2922efc.ll (mutant of abds.ll)abd_minmax_i64-mtriple=riscv32 -mattr=+zbb,+zdinx -O3 -verify-machineinstrs
clmulr.5ca9ade9cd.ll (mutant of clmulr.ll)clmulr_i32-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zhinx -O2 -code-model=medium
half-select-icmp.080a92bbff.ll (mutant of half-select-icmp.ll)select_icmp_ugt-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zhinxmin -O2
rv32xtheadbb.d898d9d3c8.ll (mutant of rv32xtheadbb.ll)ctlz_i32-mtriple=riscv32 -mattr=+xtheadbb,+zbkb,+zfinx -O0 -verify-machineinstrs
rv32xtheadbb.d898d9d3c8.ll (mutant of rv32xtheadbb.ll)ctlz_not_i32-mtriple=riscv32 -mattr=+xtheadbb,+zbkb,+zfinx -O0 -verify-machineinstrs
rv32zbb-zbkb.58c7bc8071.ll (mutant of rv32zbb-zbkb.ll)orn_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx,+zicond -O0
rv32zbb-zbkb.58c7bc8071.ll (mutant of rv32zbb-zbkb.ll)xor_hoisted_not_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx,+zicond -O0
rv32zbc-zbkc-intrinsic.b724cbd588.ll (mutant of rv32zbc-zbkc-intrinsic.ll)llvm_clmul_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O2
rv64zbb-zbkb.ac3beee776.ll (mutant of rv64zbb-zbkb.ll)xor_hoisted_not_i32_swapped-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx,+c -O1
rv64zbb-zbkb.bdeaefbc7b.ll (mutant of rv64zbb-zbkb.ll)or_hoisted_not_i32_swapped-mtriple=riscv64 -verify-machineinstrs -mattr=+zbkb,+zdinx -O3
rv64zbb-zbkb.d2c17724c7.ll (mutant of rv64zbb-zbkb.ll)xor_hoisted_not_i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx,+zicsr -O2
xqcibi-redundant-copy-elim.03d66ae664.ll (mutant of xqcibi-redundant-copy-elim.ll)test_e_beqi-mtriple=riscv32 -verify-machineinstrs -mattr=+zicond,+zfinx -O2
xqcibm-cto-clo-brev.7b70cfcef0.ll (mutant of xqcibm-cto-clo-brev.ll)test_cttz_i32_zero_poison-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O2 -code-model=small

Generated 2026-11-29 14:49 UTC.