fallback: translate: srem <N x i16>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: srem <N x i16> M |
| Occurrences: | 4 in 2 configs, 1 test files, 6 more counted only |
| Snippet from: | srem-vector-lkk.ba6559602d.ll (mutant of srem-vector-lkk.ll) @combine_srem_sdiv via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O1 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.4 = external global i1
; Function Attrs: nounwind
define <4 x i16> @combine_srem_sdiv(<4 x i16> %x) #0 {
%1 = srem <4 x i16> %x, splat (i16 95)
%2 = sdiv <4 x i16> %x, splat (i16 95)
%C = icmp ugt i16 42, 1
%3 = add <4 x i16> %1, %2
store i1 %C, ptr @G.4, align 1
ret <4 x i16> %3
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: srem: ' %1 = srem <4 x i16> %x, splat (i16 95)' (in function: combine_srem_sdiv)
warning: Instruction selection used fallback path for combine_srem_sdiv
Occurrences (4):
| Input | Function | Config |
|---|
| srem-vector-lkk.ba6559602d.ll (mutant of srem-vector-lkk.ll) | combine_srem_sdiv | -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O1 |
| srem-vector-lkk.ba6559602d.ll (mutant of srem-vector-lkk.ll) | dont_fold_srem_power_of_two | -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O1 |
| srem-vector-lkk.e8fb93f87c.ll (mutant of srem-vector-lkk.ll) | combine_srem_sdiv | -mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zve32x -O2 |
| srem-vector-lkk.e8fb93f87c.ll (mutant of srem-vector-lkk.ll) | dont_fold_srem_one | -mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zve32x -O2 |
Generated 2026-11-29 14:49 UTC.