fallback: translate: shl i32

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: shl i32 M
Occurrences:13 in 13 configs, 13 test files, 123 more counted only
Snippet from:attributes.8fbf546735.ll (mutant of attributes.ll) @addi via llvm-extract
Config:-mtriple=riscv32 -mattr=+experimental-smnip,+zbb,+zdinx -O2 -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global i32

define i32 @addi(i32 %a) {
  %B = shl i32 %a, 65536
  %1 = add i32 %a, 1
  store i32 %B, ptr @G.2, align 4
  ret i32 %1
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: shl: '  %B = shl i32 %a, 65536' (in function: addi)
warning: Instruction selection used fallback path for addi

Occurrences (13):

InputFunctionConfig
attributes.8fbf546735.ll (mutant of attributes.ll)addi-mtriple=riscv32 -mattr=+experimental-smnip,+zbb,+zdinx -O2 -verify-machineinstrs
fp128.a2748fd885.ll (mutant of fp128.ll)ldexp_f128-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2
half-convert.370d999c0c.ll (mutant of half-convert.ll)fcvt_h_d-mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zdinx,+zbs -O0
half-imm.ac1dc834c6.ll (mutant of half-imm.ll)half_imm-mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinx,+zicsr -O2
reassoc-shl-addi-add.540a70d878.ll (mutant of reassoc-shl-addi-add.ll)t4-mtriple=riscv32-unknown-elf -mattr=+zdinx -O3 -verify-machineinstrs
rv32xtheadbb.3c623ec4b1.ll (mutant of rv32xtheadbb.ll)sextb_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+xtheadbb,+b,+zdinx -O2
rv32zbb.43a1e579f1.ll (mutant of rv32zbb.ll)sextb_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zfinx,+zdinx -O2
rv32zbb.c83383405e.ll (mutant of rv32zbb.ll)sexth_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zhinx -O0
rv64zbb-zbkb.3a9448c1c2.ll (mutant of rv64zbb-zbkb.ll)not_rori_i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zbkb,+zdinx,+zbb -O3
rv64zbb.4173236df4.ll (mutant of rv64zbb.ll)sexth_i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O1
tls-models.6578cc3fd4.ll (mutant of tls-models.ll)f2-mtriple=riscv32 -enable-tlsdesc -mattr=+zfinx -O1 -verify-machineinstrs
xqccmp-push-pop-popret.411f14d6b1.ll (mutant of xqccmp-push-pop-popret.ll)many_args-mtriple=riscv64 -verify-machineinstrs -mattr=+xqccmp,+save-restore,+zfinx,+zihintpause -O1
xqcisls.e6def559df.ll (mutant of xqcisls.ll)sb_ri-mtriple=riscv32 -verify-machineinstrs -mattr=+zba,+zhinx -O2 -code-model=small

Generated 2026-11-29 14:49 UTC.