Mercurial > hg > CbC > CbC_llvm
comparison test/CodeGen/X86/avx2-gather.ll @ 0:95c75e76d11b LLVM3.4
LLVM 3.4
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Dec 2013 13:56:28 +0900 |
parents | |
children | 54457678186b |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:95c75e76d11b |
---|---|
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 | |
3 | |
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 | |
6 | |
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) ; | |
11 ret <4 x float> %res | |
12 } | |
13 | |
14 ; CHECK: test_x86_avx2_gather_d_ps | |
15 ; CHECK: vgatherdps | |
16 ; CHECK-NOT: [[DST]] | |
17 ; CHECK: [[DST:%xmm[0-9]+]]{{$}} | |
18 ; CHECK: ret |