1 ; RUN: not opt -S -passes=verify 2>&1 < %s | FileCheck %s
3 ; CHECK: Intrinsic has incorrect argument type!
4 ; CHECK-NEXT: ptr @llvm.masked.load.nxv4i32.p0
6 define <vscale x 4 x i32> @masked_load(ptr %addr, <4 x i1> %mask, <vscale x 4 x i32> %dst) {
7 %res = call <vscale x 4 x i32> @llvm.masked.load.nxv4i32.p0(ptr %addr, i32 4, <4 x i1> %mask, <vscale x 4 x i32> %dst)
8 ret <vscale x 4 x i32> %res
10 declare <vscale x 4 x i32> @llvm.masked.load.nxv4i32.p0(ptr, i32, <4 x i1>, <vscale x 4 x i32>)