fallback: translate: icmp <N x i16>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: icmp <N x i16> M
Occurrences:4 in 3 configs, 4 test files, 7 more counted only
Snippet from:fixed-vectors-trunc-vp-mask.33645518e6.ll (mutant of fixed-vectors-trunc-vp-mask.ll) @vtrunc_v2i1_v2i16 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O3
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global <2 x i1>

define <2 x i1> @vtrunc_v2i1_v2i16(<2 x i16> %a, <2 x i1> %m, i32 zeroext %vl) {
  %C = icmp ult <2 x i16> %a, splat (i16 -1)
  %v = trunc <2 x i16> %a to <2 x i1>
  store <2 x i1> %C, ptr @G, align 1
  ret <2 x i1> %v
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: icmp: '  %C = icmp ult <2 x i16> %a, splat (i16 -1)' (in function: vtrunc_v2i1_v2i16)
warning: Instruction selection used fallback path for vtrunc_v2i1_v2i16

Occurrences (4):

InputFunctionConfig
fixed-vectors-int-buildvec.a055c5fa6f.ll (mutant of fixed-vectors-int-buildvec.ll)PR159294_zext-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O1
fixed-vectors-trunc-vp-mask.33645518e6.ll (mutant of fixed-vectors-trunc-vp-mask.ll)vtrunc_v2i1_v2i16-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O3
rvp-mul-parts-acc-fold.4531edc08f.ll (mutant of rvp-mul-parts-acc-fold.ll)pmacc_h00-mtriple=riscv64 -verify-machineinstrs -mattr=+experimental-p,+m,+zbb,+zdinx -O0
rvp-zip.f78f682129.ll (mutant of rvp-zip.ll)test_unzip16hp_v4i16_partial_poison-mtriple=riscv64 -verify-machineinstrs -mattr=+experimental-p,+m,+zbb,+zdinx -O0

Generated 2026-11-29 14:49 UTC.