fallback: translate: xor i64

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: xor i64 M
Occurrences:7 in 7 configs, 4 test files, 158 more counted only
Snippet from:short-forward-branch-opt.a8a29cd278.ll (mutant of short-forward-branch-opt.ll) @select_andn via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+c,+zbb,+zhinx,+zvbb -O2
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define i64 @select_andn(i64 %A, i64 %B, i64 %C, i1 zeroext %cond) {
entry:
  %0 = xor i64 %B, -1
  %1 = and i64 %0, %A
  %2 = select i1 %cond, i64 %C, i64 %1
  ret i64 %2
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: xor: '  %0 = xor i64 %B, -1' (in function: select_andn)
warning: Instruction selection used fallback path for select_andn

Occurrences (7):

InputFunctionConfig
condbinops.29b6cc29fa.ll (mutant of condbinops.ll)xor64-mtriple=riscv64 -mattr=+zhinx -O0 -verify-machineinstrs
rv64zbb-zbkb.53f755706b.ll (mutant of rv64zbb-zbkb.ll)or_hoisted_not_i64_swapped-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zfinx -O0
rv64zbb-zbkb.9c9f98babb.ll (mutant of rv64zbb-zbkb.ll)orn_i64-mtriple=riscv64 -verify-machineinstrs -mattr=+zve32x,+zfinx -O3
rv64zbb-zbkb.d2c17724c7.ll (mutant of rv64zbb-zbkb.ll)or_hoisted_not_i64-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx,+zicsr -O2
short-forward-branch-opt.0c773fb72d.ll (mutant of short-forward-branch-opt.ll)select_bfos-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zfinx -O1
short-forward-branch-opt.a8a29cd278.ll (mutant of short-forward-branch-opt.ll)select_andn-mtriple=riscv64 -verify-machineinstrs -mattr=+c,+zbb,+zhinx,+zvbb -O2
ucmp.561c6df1a6.ll (mutant of ucmp.ll)ucmp.8.64-mtriple=riscv32 -mattr=+zcb,+zdinx -O2 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.