fallback: translate: zext i32

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: zext i32 M
Occurrences:6 in 6 configs, 5 test files, 104 more counted only
Snippet from:rv32zbc-zbkc-intrinsic.b724cbd588.ll (mutant of rv32zbc-zbkc-intrinsic.ll) @llvm_clmulh_i32 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O2
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global i1

; Function Attrs: nounwind
define i32 @llvm_clmulh_i32(i32 %a, i32 %b) #0 {
  %tmp2 = zext i32 %b to i64
  %C = icmp ne i32 %a, %b
  %B = srem i64 %tmp2, %tmp2
  %tmp5 = trunc i64 %B to i32
  store i1 %C, ptr @G.1, align 1
  ret i32 %tmp5
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

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

Occurrences (6):

InputFunctionConfig
abdu-neg.c15af75af0.ll (mutant of abdu-neg.ll)abd_ext_i32-mtriple=riscv64 -mattr=+zfinx -O3 -verify-machineinstrs
clmulh.54a131c0e6.ll (mutant of clmulh.ll)clmulh_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zbs,+zhinx -O1
pr95284.88796537f0.ll (mutant of pr95284.ll)PR95284-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O3
rv32zbc-zbkc-intrinsic.4149f047b8.ll (mutant of rv32zbc-zbkc-intrinsic.ll)llvm_clmulh_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2
rv32zbc-zbkc-intrinsic.b724cbd588.ll (mutant of rv32zbc-zbkc-intrinsic.ll)llvm_clmulh_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O2
rv64zba.23ddb02da5.ll (mutant of rv64zba.ll)sh2adduw-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zba,+zdinx,+zbs -O3 -code-model=small

Generated 2026-11-29 14:49 UTC.