fallback: legalize: G_INTRINSIC_W_SIDE_EFFECTS <N x f64>,<N x p0>,<N x i1>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_INTRINSIC_W_SIDE_EFFECTS <N x f64>,<N x p0>,<N x i1> M
Occurrences:5 in 5 configs, 2 test files, 11 more counted only
Snippet from:fixed-vectors-vpscatter.dce1e8401c.ll (mutant of fixed-vectors-vpscatter.ll) @vpscatter_baseidx_zext_v8i16_v8f64 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfhmin,+zvfbfmin,+v -O0
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define void @vpscatter_baseidx_zext_v8i16_v8f64(<8 x double> %val, ptr %base, <8 x i16> %idxs, <8 x i1> %m, i32 zeroext %evl) {
  %B = ashr i32 %evl, 65536
  %eidxs = zext <8 x i16> %idxs to <8 x i64>
  %ptrs = getelementptr inbounds double, ptr %base, <8 x i64> %eidxs
  call void @llvm.vp.scatter.v8f64.v8p0(<8 x double> %val, <8 x ptr> %ptrs, <8 x i1> %m, i32 %evl)
  store i32 %B, ptr poison, align 4
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.vp.scatter.v8f64.v8p0(<8 x double>, <8 x ptr>, <8 x i1>, i32) #0

attributes #0 = { nocallback nofree nosync nounwind willreturn }

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfhmin,+zvfbfmin,+v -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfhmin,+zvfbfmin,+v -O0 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.vp.scatter), %0:_(<8 x f64>), %17:_(<8 x p0>), %3:_(<8 x i1>), %4:_(i32) (in function: vpscatter_baseidx_zext_v8i16_v8f64)
warning: Instruction selection used fallback path for vpscatter_baseidx_zext_v8i16_v8f64

Occurrences (5):

InputFunctionConfig
fixed-vectors-masked-scatter.3c4ac1ee6f.ll (mutant of fixed-vectors-masked-scatter.ll)mscatter_baseidx_zext_v8i16_v8f64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+m,+d,+zfhmin,+zvfhmin,+zfbfmin,+zvfbfmin,+v,+zfa,+zve32x -O0
fixed-vectors-masked-scatter.40568e5f83.ll (mutant of fixed-vectors-masked-scatter.ll)mscatter_baseidx_v8f64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+m,+d,+zfhmin,+zvfhmin,+zfbfmin,+zvfbfmin,+v,+zihintpause -O1
fixed-vectors-vpscatter.0d3b6fdafc.ll (mutant of fixed-vectors-vpscatter.ll)vpscatter_baseidx_v8f64-mtriple=riscv64 -verify-machineinstrs -mattr=+zvfh,+zvfbfmin,+v -O2
fixed-vectors-vpscatter.dce1e8401c.ll (mutant of fixed-vectors-vpscatter.ll)vpscatter_baseidx_zext_v8i16_v8f64-mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zvfhmin,+zvfbfmin,+v -O0
fixed-vectors-vpscatter.faf01a095d.ll (mutant of fixed-vectors-vpscatter.ll)vpscatter_baseidx_zext_v8i16_v8f64-mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zvfh,+zvfbfmin,+v,+f,+zbs -O0 -code-model=medium

Generated 2026-11-29 14:49 UTC.