1 ; RUN: not llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx
2 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=core-avx2 | FileCheck %s
4 declare <4 x float> @llvm.x86.avx2.gather.d.ps(<4 x float>, i8*,
5 <4 x i32>, <4 x float>, i8) nounwind readonly
7 define <4 x float> @test_x86_avx2_gather_d_ps(i8* %a1,
8 <4 x i32> %idx, <4 x float> %mask) {
9 %res = call <4 x float> @llvm.x86.avx2.gather.d.ps(<4 x float> undef,
10 i8* %a1, <4 x i32> %idx, <4 x float> %mask, i8 2) ;
14 ; CHECK: test_x86_avx2_gather_d_ps
17 ; CHECK: [[DST:%xmm[0-9]+]]{{$}}
21 declare <2 x double> @llvm.x86.avx2.gather.d.pd(<2 x double>, i8*,
22 <4 x i32>, <2 x double>, i8) nounwind readonly
24 define <2 x double> @test_x86_avx2_gather_d_pd(i8* %a1,
25 <4 x i32> %idx, <2 x double> %mask) {
26 %res = call <2 x double> @llvm.x86.avx2.gather.d.pd(<2 x double> undef,
27 i8* %a1, <4 x i32> %idx, <2 x double> %mask, i8 2) ;
31 ; CHECK: test_x86_avx2_gather_d_pd