fallback: translate: sub <N x i32>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: sub <N x i32> M |
| Occurrences: | 5 in 4 configs, 4 test files, 8 more counted only |
| Snippet from: | fixed-vectors-select-addsub.a821f53634.ll (mutant of fixed-vectors-select-addsub.ll) @select_addsub_v4i32_both_swapped via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O1 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define <4 x i32> @select_addsub_v4i32_both_swapped(<4 x i1> %cc, <4 x i32> %a, <4 x i32> %b) {
%sub = sub <4 x i32> %b, %a
%add = add <4 x i32> %b, %a
%res = select <4 x i1> %cc, <4 x i32> %add, <4 x i32> %sub
ret <4 x i32> %res
}
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: sub: ' %sub = sub <4 x i32> %b, %a' (in function: select_addsub_v4i32_both_swapped)
warning: Instruction selection used fallback path for select_addsub_v4i32_both_swapped
Occurrences (5):
| Input | Function | Config |
|---|
| atomic-cmpxchg.f26a18ab96.ll (mutant of atomic-cmpxchg.ll) | cmpxchg_i16_seq_cst_monotonic | -mtriple=riscv64 -verify-machineinstrs -mattr=+a,+ztso,+zacas,+zabha,+m,+zhinx -O2 |
| fixed-vectors-select-addsub.a821f53634.ll (mutant of fixed-vectors-select-addsub.ll) | select_addsub_v4i32_both_swapped | -mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O1 |
| fixed-vectors-select-addsub.a821f53634.ll (mutant of fixed-vectors-select-addsub.ll) | select_addsub_v4i32_constmask2 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O1 |
| fixed-vectors-vrsub-vp.0038f2add6.ll (mutant of fixed-vectors-vrsub-vp.ll) | vrsub_vi_v2i32_unmasked | -mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O1 -code-model=medium |
| half-convert.da76b346f4.ll (mutant of half-convert.ll) | fcvt_h_si_signext | -mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zdinx,+zhinxmin -O2 |
Generated 2026-11-29 14:49 UTC.