fallback: legalize: G_SUB <N x i1>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_SUB <N x i1> M |
| Occurrences: | 3 in 3 configs, 2 test files, 7 more counted only |
| Snippet from: | fixed-vectors-trunc-vp-mask.3258446db6.ll (mutant of fixed-vectors-trunc-vp-mask.ll) @vtrunc_v2i1_v2i16 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+zve32x -O1 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define <2 x i1> @vtrunc_v2i1_v2i16(<2 x i16> %a, <2 x i1> %m, i32 zeroext %vl) {
%v = trunc <2 x i16> %a to <2 x i1>
%B = sub <2 x i1> %v, %m
ret <2 x i1> %B
}
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zve32x -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zve32x -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %12:_(<2 x i1>) = G_SUB %11:_, %1:_ (in function: vtrunc_v2i1_v2i16)
warning: Instruction selection used fallback path for vtrunc_v2i1_v2i16
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-trunc-vp-mask.3258446db6.ll (mutant of fixed-vectors-trunc-vp-mask.ll) | vtrunc_v2i1_v2i16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zve32x -O1 |
| fixed-vectors-vsub-vp-mask.0b322c6a43.ll (mutant of fixed-vectors-vsub-vp-mask.ll) | vsub_vv_v2i1 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m -O1 |
| fixed-vectors-vsub-vp-mask.da7834e14f.ll (mutant of fixed-vectors-vsub-vp-mask.ll) | vsub_vv_v2i1 | -mtriple=riscv32 -verify-machineinstrs -O2 |
Generated 2026-11-29 14:49 UTC.