fallback: translate: srem i8~
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: srem i8~ M |
| Occurrences: | 5 in 5 configs, 1 test files, 7 more counted only |
| Snippet from: | srem-seteq-illegal-types.98ba4d682e.ll (mutant of srem-seteq-illegal-types.ll) @test_srem_pow2_setne via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+zfinx -O3 -verify-machineinstrs |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.3 = external global i6
; Function Attrs: nounwind
define i1 @test_srem_pow2_setne(i6 %X) #0 {
%srem = srem i6 %X, 4
%B = and i6 %srem, %X
%cmp = icmp ne i6 %srem, 0
store i6 %B, ptr @G.3, align 1
ret i1 %cmp
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv32 -mattr=+zfinx -O3 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+zfinx -O3 -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: srem: ' %srem = srem i6 %X, 4' (in function: test_srem_pow2_setne)
warning: Instruction selection used fallback path for test_srem_pow2_setne
Occurrences (5):
| Input | Function | Config |
|---|
| srem-seteq-illegal-types.04e251df44.ll (mutant of srem-seteq-illegal-types.ll) | test_srem_pow2_setne | -mtriple=riscv64 -mattr=+zfinx -O1 -verify-machineinstrs |
| srem-seteq-illegal-types.98ba4d682e.ll (mutant of srem-seteq-illegal-types.ll) | test_srem_pow2_setne | -mtriple=riscv32 -mattr=+zfinx -O3 -verify-machineinstrs |
| srem-seteq-illegal-types.b74c7e640e.ll (mutant of srem-seteq-illegal-types.ll) | test_srem_pow2_setne | -mtriple=riscv64 -mattr=+m,+zfinx -O1 -verify-machineinstrs |
| srem-seteq-illegal-types.c5881df6f8.ll (mutant of srem-seteq-illegal-types.ll) | test_srem_pow2_setne | -mtriple=riscv32 -mattr=+m,+zfinx -O3 -code-model=small -verify-machineinstrs |
| srem-seteq-illegal-types.f686a1056b.ll (mutant of srem-seteq-illegal-types.ll) | test_srem_pow2_setne | -mtriple=riscv32 -mattr=+zdinx -O1 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.