fallback: translate: zext i16

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: zext i16 M
Occurrences:7 in 7 configs, 6 test files, 96 more counted only
Snippet from:rv64zbkb.20b9a650fe.ll (mutant of rv64zbkb.ll) @zext_i16_to_i32 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zbkb,+zcb,+zhinx -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.3 = external global i1

; Function Attrs: nounwind
define i32 @zext_i16_to_i32(i16 %a) #0 {
  %1 = zext i16 %a to i32
  %C = icmp eq i32 %1, 2147483647
  store i1 %C, ptr @G.3, align 1
  ret i32 %1
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: zext: '  %1 = zext i16 %a to i32' (in function: zext_i16_to_i32)
warning: Instruction selection used fallback path for zext_i16_to_i32

Occurrences (7):

InputFunctionConfig
abdu-neg.7a614211fe.ll (mutant of abdu-neg.ll)abd_ext_i16-mtriple=riscv32 -mattr=+zbb,+zhinx -O1 -verify-machineinstrs
abdu.15e3e5ae5b.ll (mutant of abdu.ll)abd_ext_i16-mtriple=riscv32 -mattr=+zdinx -O3 -code-model=small -verify-machineinstrs
lack-of-signed-truncation-check.b201769217.ll (mutant of lack-of-signed-truncation-check.ll)add_ulecmp_i16_i8-mtriple=riscv64-unknown-linux-gnu -mattr=+zdinx -O3 -verify-machineinstrs
rv64zbkb.20b9a650fe.ll (mutant of rv64zbkb.ll)zext_i16_to_i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zbkb,+zcb,+zhinx -O1
rv64zbkb.734eca09d9.ll (mutant of rv64zbkb.ll)pack_i32_3-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O0
rvp-scalar.efcc168f4c.ll (mutant of rvp-scalar.ll)maccu_h01_swap_operands-mtriple=riscv64 -mattr=+experimental-p,+zfinx -O3 -verify-machineinstrs
sext-zext-trunc.fe13298720.ll (mutant of sext-zext-trunc.ll)zext_nneg_i16_to_i64-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O2

Generated 2026-11-29 14:49 UTC.