fallback: translate: icmp i64

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: icmp i64 M
Occurrences:31 in 30 configs, 26 test files, 524 more counted only
Snippet from:zbb-logic-neg-imm.fbc36b182b.ll (mutant of zbb-logic-neg-imm.ll) @and_or_or via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zbs,+zbkb,+zhinx -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i1

define i64 @and_or_or(i64 %x, i64 %y) {
  %C = icmp sge i64 %x, %y
  %a = or i64 %x, -8589934591
  %b = or i64 %y, 8589934590
  %c = and i64 %a, %b
  store i1 %C, ptr @G, align 1
  ret i64 %c
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: icmp: '  %C = icmp sge i64 %x, %y' (in function: and_or_or)
warning: Instruction selection used fallback path for and_or_or

Occurrences (31) (first 15):

InputFunctionConfig
atomic-load-store.3f253e092a.ll (mutant of atomic-load-store.ll)atomic_store_i64_unordered-mtriple=riscv64 -verify-machineinstrs -mattr=+-a,+zaamo,+zalrsc,+no-trailing-seq-cst-fence,+zicond,+zhinx -O3
bswap-bitreverse.2182923b8a.ll (mutant of bswap-bitreverse.ll)test_bitreverse_i64-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O2
bswap-bitreverse.7209498565.ll (mutant of bswap-bitreverse.ll)test_bitreverse_bswap_i64-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx,+zcb -O3 -code-model=small
ctlz-cttz-ctpop.76c6325716.ll (mutant of ctlz-cttz-ctpop.ll)test_ctpop_i64-mtriple=riscv32 -verify-machineinstrs -mattr=+xtheadbb,+zfinx,+zcb -O3
double-br-fcmp.c53f6897c4.ll (mutant of double-br-fcmp.ll)br_fcmp_ord-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zdinx -O1 -code-model=small
double-intrinsics.2aa8655fb3.ll (mutant of double-intrinsics.ll)powi_f64-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zdinx,+zve32x -O2
dso_local_equivalent.9b38082439.ll (mutant of dso_local_equivalent.ll)f3-mtriple=riscv64 -mattr=+zhinx -O1 -verify-machineinstrs
fixed-vectors-ctpop-vp.e5b9cef6aa.ll (mutant of fixed-vectors-ctpop-vp.ll)vp_ctpop_v15i64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+m,+zhinx -O0
float-intrinsics.0ab381dce4.ll (mutant of float-intrinsics.ll)sinh_f32-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zfinx -O1
iabs.78f4bc7682.ll (mutant of iabs.ll)select_abs64-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O2 -code-model=medium
idiv_large.bd8a2eb7e6.ll (mutant of idiv_large.ll)udiv_i64-mtriple=riscv64 -mattr=+zdinx,+m -O3 -verify-machineinstrs
imm.ce3974a6b7.ll (mutant of imm.ll)imm64_1-mtriple=riscv64 -riscv-constant-pool-for-large-ints=0 -verify-machineinstrs -riscv-use-rematerializable-movimm -mattr=+zdinx -O1
neg-abs.11a2c6ba30.ll (mutant of neg-abs.ll)select_neg_abs64-mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zfinx -O2
rotl-rotr.418e9e6fba.ll (mutant of rotl-rotr.ll)rotr_64_mask_and_127_and_63-mtriple=riscv64 -verify-machineinstrs -enable-legalize-types-checking -mattr=+zfinx -O2
rv32zbb.d33e61dae8.ll (mutant of rv32zbb.ll)sub_if_uge_C_i64-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx,+xtheadba -O2

Generated 2026-11-29 14:49 UTC.