fallback: translate: srem <N x i16>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: srem <N x i16> M |
| Occurrences: | 3 in 3 configs, 1 test files, 15 more counted only |
| Snippet from: | srem-vector-lkk.e850d67026.ll (mutant of srem-vector-lkk.ll) @dont_fold_urem_i16_smax via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx -O0 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define <4 x i16> @dont_fold_urem_i16_smax(<4 x i16> %x) #0 {
%1 = srem <4 x i16> %x, <i16 1, i16 -32768, i16 23, i16 5423>
%C = fcmp oeq <4 x float> splat (float 1.000000e+00), splat (float f0x7F7FFFFF)
store <4 x i1> %C, ptr poison, align 1
ret <4 x i16> %1
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: srem: ' %1 = srem <4 x i16> %x, <i16 1, i16 -32768, i16 23, i16 5423>' (in function: dont_fold_urem_i16_smax)
warning: Instruction selection used fallback path for dont_fold_urem_i16_smax
Occurrences (3):
| Input | Function | Config |
|---|
| srem-vector-lkk.4e20178d46.ll (mutant of srem-vector-lkk.ll) | combine_srem_sdiv | -mtriple=riscv32 -verify-machineinstrs -mattr=+zbkb,+zdinx -O3 -code-model=small |
| srem-vector-lkk.e850d67026.ll (mutant of srem-vector-lkk.ll) | dont_fold_urem_i16_smax | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx -O0 |
| srem-vector-lkk.fbeca661ce.ll (mutant of srem-vector-lkk.ll) | combine_srem_sdiv | -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O1 |
Generated 2026-11-29 14:49 UTC.