fallback: translate: and i32

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: and i32 M
Occurrences:15 in 11 configs, 9 test files, 453 more counted only
Snippet from:orc-b-patterns-rv32.e6e0567f7d.ll (mutant of orc-b-patterns-rv32.ll) @byte_bit_2 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+-zbb,+zhinx,+zdinx -O0
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global i1

define i32 @byte_bit_2(i32 %x) {
  %m = and i32 %x, 67372036
  %l = shl i32 %m, 6
  %h = lshr i32 %m, 2
  %r = sub i32 %l, %h
  %C = icmp uge i32 %x, %x
  store i1 %C, ptr @G.1, align 1
  ret i32 %r
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: and: '  %m = and i32 %x, 67372036' (in function: byte_bit_2)
warning: Instruction selection used fallback path for byte_bit_2

Occurrences (15):

InputFunctionConfig
cmov-branch-opt.9036d77fec.ll (mutant of cmov-branch-opt.ll)select_or_1b-mtriple=riscv64 -verify-machineinstrs -mattr=+short-forward-branch-ialu,+zdinx -O2
mul.3e938c9836.ll (mutant of mul.ll)muli32_p384-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zfinx -O2
orc-b-patterns-rv32.e6e0567f7d.ll (mutant of orc-b-patterns-rv32.ll)byte_bit_2-mtriple=riscv32 -verify-machineinstrs -mattr=+-zbb,+zhinx,+zdinx -O0
orc-b-patterns-rv32.e6e0567f7d.ll (mutant of orc-b-patterns-rv32.ll)byte_bit_3-mtriple=riscv32 -verify-machineinstrs -mattr=+-zbb,+zhinx,+zdinx -O0
orc-b-patterns-rv32.e6e0567f7d.ll (mutant of orc-b-patterns-rv32.ll)byte_bit_5-mtriple=riscv32 -verify-machineinstrs -mattr=+-zbb,+zhinx,+zdinx -O0
orc-b-patterns-rv32.e6e0567f7d.ll (mutant of orc-b-patterns-rv32.ll)byte_bit_6-mtriple=riscv32 -verify-machineinstrs -mattr=+-zbb,+zhinx,+zdinx -O0
orc-b-patterns-rv32.e6e0567f7d.ll (mutant of orc-b-patterns-rv32.ll)byte_bit_7-mtriple=riscv32 -verify-machineinstrs -mattr=+-zbb,+zhinx,+zdinx -O0
orc-b-patterns.b6342adecb.ll (mutant of orc-b-patterns.ll)orc_b_i32_sub_shl8x_x_b1_both_used-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zhinx -O1
rotl-rotr.71f16d0a0f.ll (mutant of rotl-rotr.ll)rotr_32_mask_and_63_and_31-mtriple=riscv64 -verify-machineinstrs -enable-legalize-types-checking -mattr=+zbkb,+zhinx -O1
rv32xtheadbb.03c8e94876.ll (mutant of rv32xtheadbb.ll)zexth_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+xtheadbb,+zdinx,+zfinx -O1
rv32zbb.b71382a6b0.ll (mutant of rv32zbb.ll)orc_b_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zbkb -O1
rv32zbb.cb8b42065f.ll (mutant of rv32zbb.ll)orc_b_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O3
rv32zbb.e8aafdb67c.ll (mutant of rv32zbb.ll)zexth_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zhinx -O2
rv64zbb-zbkb.9c9f98babb.ll (mutant of rv64zbb-zbkb.ll)inverted_masked_merge_i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zve32x,+zfinx -O3
ucmp.34bccfe016.ll (mutant of ucmp.ll)ucmp.32.32_zext-mtriple=riscv64 -mattr=+zhinx,+zbb -O2 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.