mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-24 21:25:41 +00:00
AVX2: Added 2 more tests for gather intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227718 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
814d95b350
commit
516052acd3
@ -32,3 +32,30 @@ define <2 x double> @test_x86_avx2_gather_d_pd(i8* %a1,
|
||||
; CHECK: vgatherdpd
|
||||
; CHECK: vmovapd
|
||||
; CHECK: ret
|
||||
|
||||
declare <8 x float> @llvm.x86.avx2.gather.d.ps.256(<8 x float>, i8*,
|
||||
<8 x i32>, <8 x float>, i8) nounwind readonly
|
||||
|
||||
define <8 x float> @test_x86_avx2_gather_d_ps_256(i8* %a1,
|
||||
<8 x i32> %idx, <8 x float> %mask) {
|
||||
%res = call <8 x float> @llvm.x86.avx2.gather.d.ps.256(<8 x float> undef,
|
||||
i8* %a1, <8 x i32> %idx, <8 x float> %mask, i8 4) ;
|
||||
ret <8 x float> %res
|
||||
}
|
||||
; CHECK-LABEL: @test_x86_avx2_gather_d_ps_256
|
||||
; CHECK: vgatherdps %ymm
|
||||
; CHECK: ret
|
||||
|
||||
declare <4 x double> @llvm.x86.avx2.gather.d.pd.256(<4 x double>, i8*,
|
||||
<4 x i32>, <4 x double>, i8) nounwind readonly
|
||||
|
||||
define <4 x double> @test_x86_avx2_gather_d_pd_256(i8* %a1,
|
||||
<4 x i32> %idx, <4 x double> %mask) {
|
||||
%res = call <4 x double> @llvm.x86.avx2.gather.d.pd.256(<4 x double> undef,
|
||||
i8* %a1, <4 x i32> %idx, <4 x double> %mask, i8 8) ;
|
||||
ret <4 x double> %res
|
||||
}
|
||||
|
||||
; CHECK-LABEL: test_x86_avx2_gather_d_pd_256
|
||||
; CHECK: vgatherdpd %ymm
|
||||
; CHECK: ret
|
||||
|
Loading…
x
Reference in New Issue
Block a user