fallback: translate: xor i1

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: xor i1 M
Occurrences:3 in 3 configs, 2 test files, 21 more counted only
Snippet from:attributes.595d538cad.ll (mutant of attributes.ll) @atomic_load_i8_seq_cst via llvm-extract
Config:-mtriple=riscv64 -mattr=+zhinx -O2 -verify-machineinstrs
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i8 @atomic_load_i8_seq_cst(ptr %a) #0 {
  %B = xor i1 true, false
  %1 = load atomic i8, ptr %a seq_cst, align 1
  store i1 %B, ptr poison, align 1
  ret i8 %1
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv64 -mattr=+zhinx -O2 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+zhinx -O2 -verify-machineinstrs -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: atomic_load_i8_seq_cst)
warning: Instruction selection used fallback path for atomic_load_i8_seq_cst

Occurrences (3):

InputFunctionConfig
attributes.595d538cad.ll (mutant of attributes.ll)atomic_load_i8_seq_cst-mtriple=riscv64 -mattr=+zhinx -O2 -verify-machineinstrs
attributes.7c1afbcb13.ll (mutant of attributes.ll)atomic_load_i8_seq_cst-mtriple=riscv64 -mattr=+zalrsc,+zcb,+zfinx -O2 -verify-machineinstrs
fp-fcanonicalize.1787b50296.ll (mutant of fp-fcanonicalize.ll)fcanonicalize_v2f16-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx,+zbkb -O2

Generated 2026-11-29 14:49 UTC.