fallback: translate: shl i128

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: shl i128 M
Occurrences:5 in 4 configs, 4 test files, 25 more counted only
Snippet from:unaligned-load-store.0e75aa5cde.ll (mutant of unaligned-load-store.ll) @load_i24 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+unaligned-scalar-mem,+zbs,+zhinx -O3
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global i128

define i24 @load_i24(ptr %p) {
  %B = shl i128 0, 0
  %res = load i24, ptr %p, align 1
  store i128 %B, ptr @G.1, align 4
  ret i24 %res
}

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+unaligned-scalar-mem,+zbs,+zhinx -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+unaligned-scalar-mem,+zbs,+zhinx -O3 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (5):

InputFunctionConfig
abds-neg.72d964d412.ll (mutant of abds-neg.ll)abd_subnsw_i128-mtriple=riscv64 -mattr=+zdinx -O0 -code-model=medium -verify-machineinstrs
float-intrinsics.87679d2d45.ll (mutant of float-intrinsics.ll)roundeven_f32-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zfinx -O0
half-select-icmp.c56b58f1c3.ll (mutant of half-select-icmp.ll)select_icmp_ugt-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zhinxmin,+xtheadba,+zicsr -O2
half-select-icmp.c56b58f1c3.ll (mutant of half-select-icmp.ll)select_icmp_uge-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zhinxmin,+xtheadba,+zicsr -O2
unaligned-load-store.0e75aa5cde.ll (mutant of unaligned-load-store.ll)load_i24-mtriple=riscv32 -verify-machineinstrs -mattr=+unaligned-scalar-mem,+zbs,+zhinx -O3

Generated 2026-11-29 14:49 UTC.