fallback: translate: shl i1

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: shl i1 M
Occurrences:3 in 3 configs, 3 test files, 22 more counted only
Snippet from:orc-b-patterns.b6342adecb.ll (mutant of orc-b-patterns.ll) @orc_b_i32_sub_shl8x_x_shl_used via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zhinx -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.4 = external global i1

define i32 @orc_b_i32_sub_shl8x_x_shl_used(i32 %x, ptr %arr) {
entry:
  %B = shl i1 true, true
  %and = and i32 %x, 16843009
  %shl = shl i32 %and, 8
  store i32 %shl, ptr %arr, align 4
  %sub = mul i32 %and, 255
  store i1 %B, ptr @G.4, align 1
  ret i32 %sub
}

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zhinx -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zhinx -O1 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (3):

InputFunctionConfig
aclic-interrupt-frame-pointer.84c57355b2.ll (mutant of aclic-interrupt-frame-pointer.ll)m_preemptible_fp_large-mtriple=riscv64 -verify-machineinstrs -mattr=+experimental-smnip,+experimental-ssnip,+experimental-smip,+experimental-ssip,+m,+zdinx -O2
inline-asm-zhinx-constraint-r.02932bdad7.ll (mutant of inline-asm-zhinx-constraint-r.ll)constraint_f_half-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zhinx,+zcb -O1
orc-b-patterns.b6342adecb.ll (mutant of orc-b-patterns.ll)orc_b_i32_sub_shl8x_x_shl_used-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zhinx -O1

Generated 2026-11-29 14:49 UTC.