xref: /llvm-project/llvm/test/CodeGen/X86/pr28515.ll (revision b980841652c1b178b41a9a7b0e7dec06aa058e0b)
1; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mattr=+avx2 | FileCheck %s
2
3@0 = private constant [8 x i32] zeroinitializer
4
5; CHECK-LABEL: foo:
6; CHECK: movl  %esi, (%rdi)
7; CHECK-NEXT: retq
8define void @foo(ptr %p, i32 %v, <8 x i1> %mask) {
9  store i32 %v, ptr %p
10  %wide.masked.load = call <8 x i32> @llvm.masked.load.v8i32.p0(ptr @0, i32 4, <8 x i1> %mask, <8 x i32> undef)
11  ret void
12}
13
14declare <8 x i32> @llvm.masked.load.v8i32.p0(ptr, i32, <8 x i1>, <8 x i32>) #0
15
16attributes #0 = { argmemonly nounwind readonly }
17