fallback: legalize: G_INTRINSIC_W_SIDE_EFFECTS <N x i8>,p0,<N x i1>
| Run: | main-db12fc36f6-20261127-110859 |
| Kind: | fallback |
| Category: | legalize: G_INTRINSIC_W_SIDE_EFFECTS <N x i8>,p0,<N x i1> |
| Occurrences: | 78 in 22 configs, 11 test files |
| Snippet from: | fixed-vectors-segN-store.ll @store_factor2 via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+v -verify-machineinstrs |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define void @store_factor2(<8 x i8> %v0, <8 x i8> %v1, ptr %ptr) {
call void @llvm.riscv.seg2.store.mask.v8i8.p0.i64(<8 x i8> %v0, <8 x i8> %v1, ptr %ptr, <8 x i1> splat (i1 true), i64 8)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(write)
declare void @llvm.riscv.seg2.store.mask.v8i8.p0.i64(<8 x i8>, <8 x i8>, ptr captures(none), <8 x i1>, i64) #0
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(write) }
Reproduce:
llc -mtriple=riscv64 -mattr=+v -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+v -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.riscv.seg2.store.mask), %0:_(<8 x i8>), %1:_(<8 x i8>), %2:_(p0), %5:_(<8 x i1>), %7:_(i64) :: (store unknown-size into %ir.ptr, align 1) (in function: store_factor2)
warning: Instruction selection used fallback path for store_factor2
Occurrences (78) (first 15):
Generated 2026-11-29 14:49 UTC.