fallback: translate: and i32

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: and i32 M
Occurrences:8 in 7 configs, 7 test files, 231 more counted only
Snippet from:xqcibm-extract.6f2c760900.ll (mutant of xqcibm-extract.ll) @extu_from_and_i32_simm12_ub via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+xqcibm,+m,+zdinx -O2
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global i32

define i32 @extu_from_and_i32_simm12_ub(i32 %x) {
  %a = and i32 %x, 2047
  %B = shl i32 %x, 0
  store i32 %B, ptr @G.1, align 4
  ret i32 %a
}

Reproduce:

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

Local llc output:

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

Occurrences (8):

InputFunctionConfig
orc-b-patterns.bf805837da.ll (mutant of orc-b-patterns.ll)orc_b_i32_sub_shl8x_x_shl_used-mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zdinx,+zcb -O0 -code-model=small
rv32zbb.2f217c6512.ll (mutant of rv32zbb.ll)orc_b_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2
rv64zbb-zbkb.e4ed7c6eb7.ll (mutant of rv64zbb-zbkb.ll)andn_snez_i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O2
rvp-merge.9c155afe3a.ll (mutant of rvp-merge.ll)no_merge_multi_use-mtriple=riscv64 -verify-machineinstrs -mattr=+experimental-p,+zhinx -O1
rvp-merge.9c155afe3a.ll (mutant of rvp-merge.ll)merge_h_even-mtriple=riscv64 -verify-machineinstrs -mattr=+experimental-p,+zhinx -O1
ucmp.dd8d35f8c6.ll (mutant of ucmp.ll)ucmp.32.32-mtriple=riscv64 -mattr=+zhinx -O2 -verify-machineinstrs
xqcibm-extract.6f2c760900.ll (mutant of xqcibm-extract.ll)extu_from_and_i32_simm12_ub-mtriple=riscv32 -verify-machineinstrs -mattr=+xqcibm,+m,+zdinx -O2
xqcicm.deb06e533e.ll (mutant of xqcicm.ll)select_cc_example_sgt_reg-mtriple=riscv32 -verify-machineinstrs -mattr=+xqcicm,+xqcics,+xqcicli,+zca,+short-forward-branch-ialu,+conditional-cmv-fusion,+zdinx -O1

Generated 2026-11-29 14:49 UTC.