fallback: translate: shl i64

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: shl i64 M
Occurrences:8 in 7 configs, 6 test files, 63 more counted only
Snippet from:split-udiv-by-constant.b54be36eda.ll (mutant of split-udiv-by-constant.ll) @test_udiv_12 via llvm-extract
Config:-mtriple=riscv32 -mattr=+zdinx -O3 -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i64 @test_udiv_12(i64 %x) #0 {
  %B = shl i64 %x, -1
  %a = udiv i64 %B, 12
  ret i64 %a
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: shl: '  %B = shl i64 %x, -1' (in function: test_udiv_12)
warning: Instruction selection used fallback path for test_udiv_12

Occurrences (8):

InputFunctionConfig
lack-of-signed-truncation-check.bf6140116a.ll (mutant of lack-of-signed-truncation-check.ll)shifts_necmp_i64_i32-mtriple=riscv32-unknown-linux-gnu -mattr=+zfinx,+c -O0 -code-model=small -verify-machineinstrs
rv32zbb-zbkb.3a180b99a3.ll (mutant of rv32zbb-zbkb.ll)rori_i64-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O3
rv32zbkb.625c2dd8bb.ll (mutant of rv32zbkb.ll)packh_zero_i64-mtriple=riscv32 -verify-machineinstrs -mattr=+zbkb,+zbs,+zfinx -O2
rvp-scalar.5c6366c22f.ll (mutant of rvp-scalar.ll)nclipr_i32_imm_max-mtriple=riscv64 -mattr=+experimental-p,+zbb,+zfinx -O0 -verify-machineinstrs
shifts.f4011daaf5.ll (mutant of shifts.ll)shl64-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O2
split-udiv-by-constant.982012a217.ll (mutant of split-udiv-by-constant.ll)test_udiv_37_shl_XL-mtriple=riscv32 -mattr=+m,+zdinx -O2 -verify-machineinstrs
split-udiv-by-constant.b54be36eda.ll (mutant of split-udiv-by-constant.ll)test_udiv_12-mtriple=riscv32 -mattr=+zdinx -O3 -verify-machineinstrs
split-udiv-by-constant.b54be36eda.ll (mutant of split-udiv-by-constant.ll)test_urem_3_shl_XLplus5-mtriple=riscv32 -mattr=+zdinx -O3 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.