fallback: translate: zext i32

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: zext i32 M
Occurrences:11 in 10 configs, 8 test files, 71 more counted only
Snippet from:shifts.3ee26c2ceb.ll (mutant of shifts.ll) @shl128_shamt32 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx,+zicsr -O2
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i1

; Function Attrs: nounwind
define i128 @shl128_shamt32(i128 %a, i32 signext %b) #0 {
  %zext = zext nneg i32 %b to i128
  %1 = shl i128 %a, %zext
  %C = icmp slt i128 %zext, %zext
  store i1 %C, ptr @G, align 1
  ret i128 %1
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: zext: '  %zext = zext nneg i32 %b to i128' (in function: shl128_shamt32)
warning: Instruction selection used fallback path for shl128_shamt32

Occurrences (11):

InputFunctionConfig
abdu.1b8e16c449.ll (mutant of abdu.ll)abd_ext_i32_i16-mtriple=riscv64 -mattr=+zhinx -O0 -verify-machineinstrs
avgflooru.eb8e216a9d.ll (mutant of avgflooru.ll)test_ext_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2
clmul.2701a627b9.ll (mutant of clmul.ll)clmul_i64_zext-mtriple=riscv32 -verify-machineinstrs -mattr=+zvkb,+zhinx -O1 -code-model=medium
clmul.32666b470c.ll (mutant of clmul.ll)clmul_i64_zext-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O3
clmul.33086e5ee4.ll (mutant of clmul.ll)clmul_i64_zext-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbs,+zdinx -O3
rotl-rotr.7ffd255b0e.ll (mutant of rotl-rotr.ll)rotl_64_zext-mtriple=riscv32 -verify-machineinstrs -mattr=+zvkb,+zfinx -O2
rv32zbc-zbkc-intrinsic.d735a7368a.ll (mutant of rv32zbc-zbkc-intrinsic.ll)llvm_clmulh_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zbc,+zbkb,+zhinx -O0 -code-model=small
rv64zba.fb3ba00f1a.ll (mutant of rv64zba.ll)sh2adduw_imm-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O1
shifts.3ee26c2ceb.ll (mutant of shifts.ll)shl128_shamt32-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx,+zicsr -O2
shifts.a864149406.ll (mutant of shifts.ll)shl64_shamt32-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -O0
split-store.d94235892e.ll (mutant of split-store.ll)int32_int32_pair-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2

Generated 2026-11-29 14:49 UTC.