fallback: legalize: G_SREM <N x i128>
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | legalize: G_SREM <N x i128> M |
| Occurrences: | 3 in 3 configs, 3 test files, 3 more counted only |
| Snippet from: | fixed-vectors-shuffle-exact-vlen.d826ecb71d.ll (mutant of fixed-vectors-shuffle-exact-vlen.ll) @shuffle_i128_ldst via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+m -O3 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: vscale_range(2,2)
define void @shuffle_i128_ldst(ptr %p) #0 {
%A = alloca <4 x i128>, align 64
store <4 x i128> poison, ptr %A, align 64
%a = load <4 x i128>, ptr %p, align 64
%res = shufflevector <4 x i128> %a, <4 x i128> poison, <4 x i32> <i32 0, i32 0, i32 3, i32 2>
%B = srem <4 x i128> %a, splat (i128 42)
store <4 x i128> %res, ptr %p, align 64
store <4 x i128> %B, ptr %A, align 64
ret void
}
attributes #0 = { vscale_range(2,2) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+m -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+m -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %7:_(<4 x i128>) = G_SREM %3:_, %5:_ (in function: shuffle_i128_ldst)
warning: Instruction selection used fallback path for shuffle_i128_ldst
Occurrences (3):
| Input | Function | Config |
|---|
| clmulr.49524b036d.ll (mutant of clmulr.ll) | commutative_clmulr_v2i64 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbc,+zvfh -O0 |
| fixed-vectors-shuffle-exact-vlen.d826ecb71d.ll (mutant of fixed-vectors-shuffle-exact-vlen.ll) | shuffle_i128_ldst | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+m -O3 |
| smulh.cba17b3ce1.ll (mutant of smulh.ll) | smulh_v2i128 | -mtriple=riscv64 -mattr=+m,+v -O1 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.