fallback: translate: shl i32

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: shl i32 M
Occurrences:12 in 11 configs, 10 test files, 164 more counted only
Snippet from:shlimm-addimm.da714a7df5.ll (mutant of shlimm-addimm.ll) @shl5_add47968_a via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O2
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global i32

define i32 @shl5_add47968_a(i32 %x) {
  %tmp0 = shl i32 %x, 5
  %tmp1 = add i32 %tmp0, 47968
  %B = udiv i32 %x, 1
  store i32 %B, ptr @G.2, align 4
  ret i32 %tmp1
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: shl: '  %tmp0 = shl i32 %x, 5' (in function: shl5_add47968_a)
warning: Instruction selection used fallback path for shl5_add47968_a

Occurrences (12):

InputFunctionConfig
fp-fcanonicalize.a02d19a758.ll (mutant of fp-fcanonicalize.ll)fcanonicalize_f32-mtriple=riscv32 -target-abi=ilp32 -verify-machineinstrs -mattr=+zhinx,+zvkb -O3 -code-model=small
rv32xtheadbb.bec734ce8a.ll (mutant of rv32xtheadbb.ll)sextb_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+xtheadbb,+zhinx -O0
rv32zbb.0be84b62e5.ll (mutant of rv32zbb.ll)ctpop_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zfinx -O0
rv64zbb.7ec46c1ddc.ll (mutant of rv64zbb.ll)sextb_i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zbkb,+zfinx -O1 -code-model=small
rv64zbs.9de806c77d.ll (mutant of rv64zbs.ll)bclr_i32_no_mask-mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O0
rvp-simd-32.c51ef3b12f.ll (mutant of rvp-simd-32.ll)test_psrl_s_u8x4-mtriple=riscv64 -verify-machineinstrs -mattr=+experimental-p,+m,+zbb,+zfinx -O3
shift-masked-shamt.163051a47a.ll (mutant of shift-masked-shamt.ll)srl_redundant_mask_zeros-mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O1
shift-masked-shamt.320c93689b.ll (mutant of shift-masked-shamt.ll)sra_redundant_mask_zeros-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O2
shifts.aac8227fec.ll (mutant of shifts.ll)ashr64_shamt32-mtriple=riscv64 -verify-machineinstrs -mattr=+zba,+zhinx -O2 -code-model=small
shlimm-addimm.da714a7df5.ll (mutant of shlimm-addimm.ll)shl5_add47968_a-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O2
shlimm-addimm.da714a7df5.ll (mutant of shlimm-addimm.ll)shl5_add47969_b-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O2
xqcibm-insbi.4831d22263.ll (mutant of xqcibm-insbi.ll)insb-mtriple=riscv32 --verify-machineinstrs -mattr=+zfinx -O2 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.