fallback: translate: xor i32

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: xor i32 M
Occurrences:17 in 16 configs, 13 test files, 144 more counted only
Snippet from:xqcilia.89abb8af87.ll (mutant of xqcilia.ll) @xor via llvm-extract
Config:-mtriple=riscv32 -mattr=+xqcilia,+zdinx -O3 -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i1

define i32 @xor(i32 %a, i32 %b) {
  %xorai = xor i32 %a, 268435456
  %C = icmp uge i32 %xorai, %xorai
  %B = sdiv i32 %b, %b
  %xor = xor i32 %b, 2345678
  %add = add i32 %xor, %xorai
  %res = xor i32 %add, 13
  store i1 %C, ptr @G, align 1
  store i32 %B, ptr poison, align 4
  ret i32 %res
}

Reproduce:

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

Local llc output:

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

Occurrences (17) (first 15):

InputFunctionConfig
atomic-cmpxchg.7637e12d46.ll (mutant of atomic-cmpxchg.ll)cmpxchg_i32_acquire_acquire-mtriple=riscv32 -verify-machineinstrs -mattr=+-a,+zaamo,+zalrsc,+zbs,+zhinx -O0
avgceils.566363ef75.ll (mutant of avgceils.ll)test_fixed_i16-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -O1
fixed-vectors-vssubu-vp.0dcf430ea1.ll (mutant of fixed-vectors-vssubu-vp.ll)vssubu_vi_v258i8-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O3
fp128.ee8b2fe97a.ll (mutant of fp128.ll)powi-mtriple=riscv64 -mattr=+zdinx,+zbkb -O0 -verify-machineinstrs
half-fcmp-strict.73e44a7b19.ll (mutant of half-fcmp-strict.ll)fcmp_olt-mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -disable-strictnode-mutation -mattr=+zhinx -O2
machine-outliner-multiple-sections.913bf2d660.ll (mutant of machine-outliner-multiple-sections.ll)shared_1-mtriple=riscv64 -enable-machine-outliner=always -verify-machineinstrs -mattr=+zfinx -O2
machine-outliner-multiple-sections.913bf2d660.ll (mutant of machine-outliner-multiple-sections.ll)a_0-mtriple=riscv64 -enable-machine-outliner=always -verify-machineinstrs -mattr=+zfinx -O2
rv32zbb-zbkb.2ae2042dde.ll (mutant of rv32zbb-zbkb.ll)xnor_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zbkb,+zdinx,+c -O0
rv32zbb-zbkb.3a180b99a3.ll (mutant of rv32zbb-zbkb.ll)and_hoisted_not_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O3
rv32zbb-zbkb.75039987c8.ll (mutant of rv32zbb-zbkb.ll)andn_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zbkb,+xtheadba,+zhinx -O2
rv32zbb-zbkb.aac2a7a185.ll (mutant of rv32zbb-zbkb.ll)orn_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O3 -code-model=small
rv64zbb-zbkb.1014b16c20.ll (mutant of rv64zbb-zbkb.ll)orn_i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zvkb,+zfinx -O3
rv64zbb-zbkb.7d07bcca76.ll (mutant of rv64zbb-zbkb.ll)xnor_i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zbkb,+zhinx -O0
rv64zbb-zbkb.e4ed7c6eb7.ll (mutant of rv64zbb-zbkb.ll)or_hoisted_not_i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O2
umulh.513754e47a.ll (mutant of umulh.ll)umulh_v3i32-mtriple=riscv64 -mattr=+zhinx -O0 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.