fallback: translate: xor i16

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: xor i16 M
Occurrences:4 in 4 configs, 4 test files, 37 more counted only
Snippet from:min-max.f45b7df411.ll (mutant of min-max.ll) @smin_i16 via llvm-extract
Config:-mtriple=riscv32 -mattr=+zbb,+zhinx -O2 -verify-machineinstrs
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define signext i16 @smin_i16(i16 signext %a, i16 signext %b) {
  %B = xor i16 %b, 256
  ret i16 %B
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: xor: '  %B = xor i16 %b, 256' (in function: smin_i16)
warning: Instruction selection used fallback path for smin_i16

Occurrences (4):

InputFunctionConfig
codemodel-lowering.84fb47c73b.ll (mutant of codemodel-lowering.ll)lower_blockaddress-mtriple=riscv64 -target-abi=lp64 -verify-machineinstrs -mattr=+zfinx,+zhinx -O2
half-fcmp.946af33421.ll (mutant of half-fcmp.ll)fcmp_olt-mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinxmin -O0 -code-model=small
min-max.f45b7df411.ll (mutant of min-max.ll)smin_i16-mtriple=riscv32 -mattr=+zbb,+zhinx -O2 -verify-machineinstrs
rotl-rotr.d2ecd582c0.ll (mutant of rotl-rotr.ll)rotr_i16-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -O0

Generated 2026-11-29 14:49 UTC.