xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/sse-builtins.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -ffreestanding -triple x86_64-apple-macosx10.8.0 -target-feature +sse4.1 -emit-llvm %s -o - | FileCheck %s
2f4a2713aSLionel Sambuc 
3f4a2713aSLionel Sambuc #include <xmmintrin.h>
4f4a2713aSLionel Sambuc #include <emmintrin.h>
5f4a2713aSLionel Sambuc #include <smmintrin.h>
6f4a2713aSLionel Sambuc 
test_rsqrt_ss(__m128 x)7f4a2713aSLionel Sambuc __m128 test_rsqrt_ss(__m128 x) {
8f4a2713aSLionel Sambuc   // CHECK: define {{.*}} @test_rsqrt_ss
9f4a2713aSLionel Sambuc   // CHECK: call <4 x float> @llvm.x86.sse.rsqrt.ss
10f4a2713aSLionel Sambuc   // CHECK: extractelement <4 x float> {{.*}}, i32 0
11f4a2713aSLionel Sambuc   // CHECK: extractelement <4 x float> {{.*}}, i32 1
12f4a2713aSLionel Sambuc   // CHECK: extractelement <4 x float> {{.*}}, i32 2
13f4a2713aSLionel Sambuc   // CHECK: extractelement <4 x float> {{.*}}, i32 3
14f4a2713aSLionel Sambuc   return _mm_rsqrt_ss(x);
15f4a2713aSLionel Sambuc }
16f4a2713aSLionel Sambuc 
test_rcp_ss(__m128 x)17f4a2713aSLionel Sambuc __m128 test_rcp_ss(__m128 x) {
18f4a2713aSLionel Sambuc   // CHECK: define {{.*}} @test_rcp_ss
19f4a2713aSLionel Sambuc   // CHECK: call <4 x float> @llvm.x86.sse.rcp.ss
20f4a2713aSLionel Sambuc   // CHECK: extractelement <4 x float> {{.*}}, i32 0
21f4a2713aSLionel Sambuc   // CHECK: extractelement <4 x float> {{.*}}, i32 1
22f4a2713aSLionel Sambuc   // CHECK: extractelement <4 x float> {{.*}}, i32 2
23f4a2713aSLionel Sambuc   // CHECK: extractelement <4 x float> {{.*}}, i32 3
24f4a2713aSLionel Sambuc   return _mm_rcp_ss(x);
25f4a2713aSLionel Sambuc }
26f4a2713aSLionel Sambuc 
test_sqrt_ss(__m128 x)27f4a2713aSLionel Sambuc __m128 test_sqrt_ss(__m128 x) {
28f4a2713aSLionel Sambuc   // CHECK: define {{.*}} @test_sqrt_ss
29f4a2713aSLionel Sambuc   // CHECK: call <4 x float> @llvm.x86.sse.sqrt.ss
30f4a2713aSLionel Sambuc   // CHECK: extractelement <4 x float> {{.*}}, i32 0
31f4a2713aSLionel Sambuc   // CHECK: extractelement <4 x float> {{.*}}, i32 1
32f4a2713aSLionel Sambuc   // CHECK: extractelement <4 x float> {{.*}}, i32 2
33f4a2713aSLionel Sambuc   // CHECK: extractelement <4 x float> {{.*}}, i32 3
34f4a2713aSLionel Sambuc   return _mm_sqrt_ss(x);
35f4a2713aSLionel Sambuc }
36f4a2713aSLionel Sambuc 
test_loadl_pi(__m128 x,void * y)37f4a2713aSLionel Sambuc __m128 test_loadl_pi(__m128 x, void* y) {
38f4a2713aSLionel Sambuc   // CHECK: define {{.*}} @test_loadl_pi
39f4a2713aSLionel Sambuc   // CHECK: load <2 x float>* {{.*}}, align 1{{$}}
40f4a2713aSLionel Sambuc   // CHECK: shufflevector {{.*}} <4 x i32> <i32 0, i32 1
41f4a2713aSLionel Sambuc   // CHECK: shufflevector {{.*}} <4 x i32> <i32 4, i32 5, i32 2, i32 3>
42f4a2713aSLionel Sambuc   return _mm_loadl_pi(x,y);
43f4a2713aSLionel Sambuc }
44f4a2713aSLionel Sambuc 
test_loadh_pi(__m128 x,void * y)45f4a2713aSLionel Sambuc __m128 test_loadh_pi(__m128 x, void* y) {
46f4a2713aSLionel Sambuc   // CHECK: define {{.*}} @test_loadh_pi
47f4a2713aSLionel Sambuc   // CHECK: load <2 x float>* {{.*}}, align 1{{$}}
48f4a2713aSLionel Sambuc   // CHECK: shufflevector {{.*}} <4 x i32> <i32 0, i32 1
49f4a2713aSLionel Sambuc   // CHECK: shufflevector {{.*}} <4 x i32> <i32 0, i32 1, i32 4, i32 5>
50f4a2713aSLionel Sambuc   return _mm_loadh_pi(x,y);
51f4a2713aSLionel Sambuc }
52f4a2713aSLionel Sambuc 
test_load_ss(void * y)53f4a2713aSLionel Sambuc __m128 test_load_ss(void* y) {
54f4a2713aSLionel Sambuc   // CHECK: define {{.*}} @test_load_ss
55f4a2713aSLionel Sambuc   // CHECK: load float* {{.*}}, align 1{{$}}
56f4a2713aSLionel Sambuc   return _mm_load_ss(y);
57f4a2713aSLionel Sambuc }
58f4a2713aSLionel Sambuc 
test_load1_ps(void * y)59f4a2713aSLionel Sambuc __m128 test_load1_ps(void* y) {
60f4a2713aSLionel Sambuc   // CHECK: define {{.*}} @test_load1_ps
61f4a2713aSLionel Sambuc   // CHECK: load float* {{.*}}, align 1{{$}}
62f4a2713aSLionel Sambuc   return _mm_load1_ps(y);
63f4a2713aSLionel Sambuc }
64f4a2713aSLionel Sambuc 
test_store_ss(__m128 x,void * y)65f4a2713aSLionel Sambuc void test_store_ss(__m128 x, void* y) {
66f4a2713aSLionel Sambuc   // CHECK-LABEL: define void @test_store_ss
67*0a6a1f1dSLionel Sambuc   // CHECK: store {{.*}} float* {{.*}}, align 1{{$}}
68f4a2713aSLionel Sambuc   _mm_store_ss(y, x);
69f4a2713aSLionel Sambuc }
70f4a2713aSLionel Sambuc 
test_load1_pd(__m128 x,void * y)71f4a2713aSLionel Sambuc __m128d test_load1_pd(__m128 x, void* y) {
72f4a2713aSLionel Sambuc   // CHECK: define {{.*}} @test_load1_pd
73f4a2713aSLionel Sambuc   // CHECK: load double* {{.*}}, align 1{{$}}
74f4a2713aSLionel Sambuc   return _mm_load1_pd(y);
75f4a2713aSLionel Sambuc }
76f4a2713aSLionel Sambuc 
test_loadr_pd(__m128 x,void * y)77f4a2713aSLionel Sambuc __m128d test_loadr_pd(__m128 x, void* y) {
78f4a2713aSLionel Sambuc   // CHECK: define {{.*}} @test_loadr_pd
79f4a2713aSLionel Sambuc   // CHECK: load <2 x double>* {{.*}}, align 16{{$}}
80f4a2713aSLionel Sambuc   return _mm_loadr_pd(y);
81f4a2713aSLionel Sambuc }
82f4a2713aSLionel Sambuc 
test_load_sd(void * y)83f4a2713aSLionel Sambuc __m128d test_load_sd(void* y) {
84f4a2713aSLionel Sambuc   // CHECK: define {{.*}} @test_load_sd
85f4a2713aSLionel Sambuc   // CHECK: load double* {{.*}}, align 1{{$}}
86f4a2713aSLionel Sambuc   return _mm_load_sd(y);
87f4a2713aSLionel Sambuc }
88f4a2713aSLionel Sambuc 
test_loadh_pd(__m128d x,void * y)89f4a2713aSLionel Sambuc __m128d test_loadh_pd(__m128d x, void* y) {
90f4a2713aSLionel Sambuc   // CHECK: define {{.*}} @test_loadh_pd
91f4a2713aSLionel Sambuc   // CHECK: load double* {{.*}}, align 1{{$}}
92f4a2713aSLionel Sambuc   return _mm_loadh_pd(x, y);
93f4a2713aSLionel Sambuc }
94f4a2713aSLionel Sambuc 
test_loadl_pd(__m128d x,void * y)95f4a2713aSLionel Sambuc __m128d test_loadl_pd(__m128d x, void* y) {
96f4a2713aSLionel Sambuc   // CHECK: define {{.*}} @test_loadl_pd
97f4a2713aSLionel Sambuc   // CHECK: load double* {{.*}}, align 1{{$}}
98f4a2713aSLionel Sambuc   return _mm_loadl_pd(x, y);
99f4a2713aSLionel Sambuc }
100f4a2713aSLionel Sambuc 
test_store_sd(__m128d x,void * y)101f4a2713aSLionel Sambuc void test_store_sd(__m128d x, void* y) {
102f4a2713aSLionel Sambuc   // CHECK-LABEL: define void @test_store_sd
103f4a2713aSLionel Sambuc   // CHECK: store {{.*}} double* {{.*}}, align 1{{$}}
104f4a2713aSLionel Sambuc   _mm_store_sd(y, x);
105f4a2713aSLionel Sambuc }
106f4a2713aSLionel Sambuc 
test_store1_pd(__m128d x,void * y)107f4a2713aSLionel Sambuc void test_store1_pd(__m128d x, void* y) {
108f4a2713aSLionel Sambuc   // CHECK-LABEL: define void @test_store1_pd
109f4a2713aSLionel Sambuc   // CHECK: store {{.*}} double* {{.*}}, align 1{{$}}
110f4a2713aSLionel Sambuc   // CHECK: store {{.*}} double* {{.*}}, align 1{{$}}
111f4a2713aSLionel Sambuc   _mm_store1_pd(y, x);
112f4a2713aSLionel Sambuc }
113f4a2713aSLionel Sambuc 
test_storer_pd(__m128d x,void * y)114f4a2713aSLionel Sambuc void test_storer_pd(__m128d x, void* y) {
115f4a2713aSLionel Sambuc   // CHECK-LABEL: define void @test_storer_pd
116f4a2713aSLionel Sambuc   // CHECK: store {{.*}} <2 x double>* {{.*}}, align 16{{$}}
117f4a2713aSLionel Sambuc   _mm_storer_pd(y, x);
118f4a2713aSLionel Sambuc }
119f4a2713aSLionel Sambuc 
test_storeh_pd(__m128d x,void * y)120f4a2713aSLionel Sambuc void test_storeh_pd(__m128d x, void* y) {
121f4a2713aSLionel Sambuc   // CHECK-LABEL: define void @test_storeh_pd
122f4a2713aSLionel Sambuc   // CHECK: store {{.*}} double* {{.*}}, align 1{{$}}
123f4a2713aSLionel Sambuc   _mm_storeh_pd(y, x);
124f4a2713aSLionel Sambuc }
125f4a2713aSLionel Sambuc 
test_storel_pd(__m128d x,void * y)126f4a2713aSLionel Sambuc void test_storel_pd(__m128d x, void* y) {
127f4a2713aSLionel Sambuc   // CHECK-LABEL: define void @test_storel_pd
128f4a2713aSLionel Sambuc   // CHECK: store {{.*}} double* {{.*}}, align 1{{$}}
129f4a2713aSLionel Sambuc   _mm_storel_pd(y, x);
130f4a2713aSLionel Sambuc }
131f4a2713aSLionel Sambuc 
test_loadl_epi64(void * y)132f4a2713aSLionel Sambuc __m128i test_loadl_epi64(void* y) {
133f4a2713aSLionel Sambuc   // CHECK: define {{.*}} @test_loadl_epi64
134f4a2713aSLionel Sambuc   // CHECK: load i64* {{.*}}, align 1{{$}}
135f4a2713aSLionel Sambuc   return _mm_loadl_epi64(y);
136f4a2713aSLionel Sambuc }
137f4a2713aSLionel Sambuc 
test_mm_minpos_epu16(__m128i x)138f4a2713aSLionel Sambuc __m128i test_mm_minpos_epu16(__m128i x) {
139f4a2713aSLionel Sambuc   // CHECK: define {{.*}} @test_mm_minpos_epu16
140f4a2713aSLionel Sambuc   // CHECK: @llvm.x86.sse41.phminposuw
141f4a2713aSLionel Sambuc   return _mm_minpos_epu16(x);
142f4a2713aSLionel Sambuc }
143f4a2713aSLionel Sambuc 
test_mm_mpsadbw_epu8(__m128i x,__m128i y)144f4a2713aSLionel Sambuc __m128i test_mm_mpsadbw_epu8(__m128i x, __m128i y) {
145f4a2713aSLionel Sambuc   // CHECK: define {{.*}} @test_mm_mpsadbw_epu8
146f4a2713aSLionel Sambuc   // CHECK: @llvm.x86.sse41.mpsadbw
147f4a2713aSLionel Sambuc   return _mm_mpsadbw_epu8(x, y, 1);
148f4a2713aSLionel Sambuc }
149f4a2713aSLionel Sambuc 
test_mm_dp_ps(__m128 x,__m128 y)150f4a2713aSLionel Sambuc __m128 test_mm_dp_ps(__m128 x, __m128 y) {
151f4a2713aSLionel Sambuc   // CHECK: define {{.*}} @test_mm_dp_ps
152f4a2713aSLionel Sambuc   // CHECK: @llvm.x86.sse41.dpps
153f4a2713aSLionel Sambuc   return _mm_dp_ps(x, y, 2);
154f4a2713aSLionel Sambuc }
155f4a2713aSLionel Sambuc 
test_mm_dp_pd(__m128d x,__m128d y)156f4a2713aSLionel Sambuc __m128d test_mm_dp_pd(__m128d x, __m128d y) {
157f4a2713aSLionel Sambuc   // CHECK: define {{.*}} @test_mm_dp_pd
158f4a2713aSLionel Sambuc   // CHECK: @llvm.x86.sse41.dppd
159f4a2713aSLionel Sambuc   return _mm_dp_pd(x, y, 2);
160f4a2713aSLionel Sambuc }
161f4a2713aSLionel Sambuc 
test_mm_round_ps(__m128 x)162f4a2713aSLionel Sambuc __m128 test_mm_round_ps(__m128 x) {
163f4a2713aSLionel Sambuc   // CHECK: define {{.*}} @test_mm_round_ps
164f4a2713aSLionel Sambuc   // CHECK: @llvm.x86.sse41.round.ps
165f4a2713aSLionel Sambuc   return _mm_round_ps(x, 2);
166f4a2713aSLionel Sambuc }
167f4a2713aSLionel Sambuc 
test_mm_round_ss(__m128 x,__m128 y)168f4a2713aSLionel Sambuc __m128 test_mm_round_ss(__m128 x, __m128 y) {
169f4a2713aSLionel Sambuc   // CHECK: define {{.*}} @test_mm_round_ss
170f4a2713aSLionel Sambuc   // CHECK: @llvm.x86.sse41.round.ss
171f4a2713aSLionel Sambuc   return _mm_round_ss(x, y, 2);
172f4a2713aSLionel Sambuc }
173f4a2713aSLionel Sambuc 
test_mm_round_pd(__m128d x)174f4a2713aSLionel Sambuc __m128d test_mm_round_pd(__m128d x) {
175f4a2713aSLionel Sambuc   // CHECK: define {{.*}} @test_mm_round_pd
176f4a2713aSLionel Sambuc   // CHECK: @llvm.x86.sse41.round.pd
177f4a2713aSLionel Sambuc   return _mm_round_pd(x, 2);
178f4a2713aSLionel Sambuc }
179f4a2713aSLionel Sambuc 
test_mm_round_sd(__m128d x,__m128d y)180f4a2713aSLionel Sambuc __m128d test_mm_round_sd(__m128d x, __m128d y) {
181f4a2713aSLionel Sambuc   // CHECK: define {{.*}} @test_mm_round_sd
182f4a2713aSLionel Sambuc   // CHECK: @llvm.x86.sse41.round.sd
183f4a2713aSLionel Sambuc   return _mm_round_sd(x, y, 2);
184f4a2713aSLionel Sambuc }
185f4a2713aSLionel Sambuc 
test_storel_epi64(__m128i x,void * y)186f4a2713aSLionel Sambuc void test_storel_epi64(__m128i x, void* y) {
187f4a2713aSLionel Sambuc   // CHECK-LABEL: define void @test_storel_epi64
188f4a2713aSLionel Sambuc   // CHECK: store {{.*}} i64* {{.*}}, align 1{{$}}
189f4a2713aSLionel Sambuc   _mm_storel_epi64(y, x);
190f4a2713aSLionel Sambuc }
191f4a2713aSLionel Sambuc 
test_stream_si32(int x,void * y)192f4a2713aSLionel Sambuc void test_stream_si32(int x, void *y) {
193f4a2713aSLionel Sambuc   // CHECK-LABEL: define void @test_stream_si32
194f4a2713aSLionel Sambuc   // CHECK: store {{.*}} i32* {{.*}}, align 1, !nontemporal
195f4a2713aSLionel Sambuc   _mm_stream_si32(y, x);
196f4a2713aSLionel Sambuc }
197f4a2713aSLionel Sambuc 
test_stream_si64(long long x,void * y)198f4a2713aSLionel Sambuc void test_stream_si64(long long x, void *y) {
199f4a2713aSLionel Sambuc   // CHECK-LABEL: define void @test_stream_si64
200f4a2713aSLionel Sambuc   // CHECK: store {{.*}} i64* {{.*}}, align 1, !nontemporal
201f4a2713aSLionel Sambuc   _mm_stream_si64(y, x);
202f4a2713aSLionel Sambuc }
203f4a2713aSLionel Sambuc 
test_stream_si128(__m128i x,void * y)204f4a2713aSLionel Sambuc void test_stream_si128(__m128i x, void *y) {
205f4a2713aSLionel Sambuc   // CHECK-LABEL: define void @test_stream_si128
206f4a2713aSLionel Sambuc   // CHECK: store {{.*}} <2 x i64>* {{.*}}, align 16, !nontemporal
207f4a2713aSLionel Sambuc   _mm_stream_si128(y, x);
208f4a2713aSLionel Sambuc }
209f4a2713aSLionel Sambuc 
test_extract_epi16(__m128i __a)210f4a2713aSLionel Sambuc void test_extract_epi16(__m128i __a) {
211f4a2713aSLionel Sambuc   // CHECK-LABEL: define void @test_extract_epi16
212f4a2713aSLionel Sambuc   // CHECK: [[x:%.*]] = and i32 %{{.*}}, 7
213f4a2713aSLionel Sambuc   // CHECK: extractelement <8 x i16> %{{.*}}, i32 [[x]]
214f4a2713aSLionel Sambuc   _mm_extract_epi16(__a, 8);
215f4a2713aSLionel Sambuc }
216f4a2713aSLionel Sambuc 
test_extract_ps(__m128i __a)217f4a2713aSLionel Sambuc int test_extract_ps(__m128i __a) {
218f4a2713aSLionel Sambuc   // CHECK-LABEL: @test_extract_ps
219f4a2713aSLionel Sambuc   // CHECK: extractelement <4 x float> %{{.*}}, i32 0
220f4a2713aSLionel Sambuc   return _mm_extract_ps(__a, 4);
221f4a2713aSLionel Sambuc }
222f4a2713aSLionel Sambuc 
test_extract_epi8(__m128i __a)223f4a2713aSLionel Sambuc int test_extract_epi8(__m128i __a) {
224f4a2713aSLionel Sambuc   // CHECK-LABEL: @test_extract_epi8
225f4a2713aSLionel Sambuc   // CHECK: extractelement <16 x i8> %{{.*}}, i32 0
226f4a2713aSLionel Sambuc   return _mm_extract_epi8(__a, 16);
227f4a2713aSLionel Sambuc }
228f4a2713aSLionel Sambuc 
test_extract_epi32(__m128i __a)229f4a2713aSLionel Sambuc int test_extract_epi32(__m128i __a) {
230f4a2713aSLionel Sambuc   // CHECK-LABEL: @test_extract_epi32
231f4a2713aSLionel Sambuc   // CHECK: extractelement <4 x i32> %{{.*}}, i32 0
232f4a2713aSLionel Sambuc   return _mm_extract_epi32(__a, 4);
233f4a2713aSLionel Sambuc }
234f4a2713aSLionel Sambuc 
test_insert_epi32(__m128i __a,int b)235f4a2713aSLionel Sambuc void test_insert_epi32(__m128i __a, int b) {
236f4a2713aSLionel Sambuc   // CHECK-LABEL: @test_insert_epi32
237f4a2713aSLionel Sambuc   // CHECK: insertelement <4 x i32> %{{.*}}, i32 %{{.*}}, i32 0
238f4a2713aSLionel Sambuc    _mm_insert_epi32(__a, b, 4);
239f4a2713aSLionel Sambuc }
240*0a6a1f1dSLionel Sambuc 
test_blend_pd(__m128d V1,__m128d V2)241*0a6a1f1dSLionel Sambuc __m128d test_blend_pd(__m128d V1, __m128d V2) {
242*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_blend_pd
243*0a6a1f1dSLionel Sambuc   // CHECK: shufflevector <2 x double> %{{.*}}, <2 x double> %{{.*}}, <2 x i32> <i32 2, i32 1>
244*0a6a1f1dSLionel Sambuc   return _mm_blend_pd(V1, V2, 1);
245*0a6a1f1dSLionel Sambuc }
246*0a6a1f1dSLionel Sambuc 
test_blend_ps(__m128 V1,__m128 V2)247*0a6a1f1dSLionel Sambuc __m128 test_blend_ps(__m128 V1, __m128 V2) {
248*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_blend_ps
249*0a6a1f1dSLionel Sambuc   // CHECK: shufflevector <4 x float> %{{.*}}, <4 x float> %{{.*}}, <4 x i32> <i32 4, i32 1, i32 6, i32 3>
250*0a6a1f1dSLionel Sambuc   return _mm_blend_ps(V1, V2, 5);
251*0a6a1f1dSLionel Sambuc }
252*0a6a1f1dSLionel Sambuc 
test_blend_epi16(__m128i V1,__m128i V2)253*0a6a1f1dSLionel Sambuc __m128i test_blend_epi16(__m128i V1, __m128i V2) {
254*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_blend_epi16
255*0a6a1f1dSLionel Sambuc   // CHECK: shufflevector <8 x i16> %{{.*}}, <8 x i16> %{{.*}}, <8 x i32> <i32 0, i32 9, i32 2, i32 11, i32 4, i32 13, i32 6, i32 7>
256*0a6a1f1dSLionel Sambuc   return _mm_blend_epi16(V1, V2, 42);
257*0a6a1f1dSLionel Sambuc }
258*0a6a1f1dSLionel Sambuc 
test_mm_cmpeq_ss(__m128 __a,__m128 __b)259*0a6a1f1dSLionel Sambuc __m128 test_mm_cmpeq_ss(__m128 __a, __m128 __b) {
260*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpeq_ss
261*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse.cmp.ss(<4 x float> %{{.*}}, <4 x float> %{{.*}}, i8 0)
262*0a6a1f1dSLionel Sambuc   return _mm_cmpeq_ss(__a, __b);
263*0a6a1f1dSLionel Sambuc }
264*0a6a1f1dSLionel Sambuc 
test_mm_cmplt_ss(__m128 __a,__m128 __b)265*0a6a1f1dSLionel Sambuc __m128 test_mm_cmplt_ss(__m128 __a, __m128 __b) {
266*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmplt_ss
267*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse.cmp.ss(<4 x float> %{{.*}}, <4 x float> %{{.*}}, i8 1)
268*0a6a1f1dSLionel Sambuc   return _mm_cmplt_ss(__a, __b);
269*0a6a1f1dSLionel Sambuc }
270*0a6a1f1dSLionel Sambuc 
test_mm_cmple_ss(__m128 __a,__m128 __b)271*0a6a1f1dSLionel Sambuc __m128 test_mm_cmple_ss(__m128 __a, __m128 __b) {
272*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmple_ss
273*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse.cmp.ss(<4 x float> %{{.*}}, <4 x float> %{{.*}}, i8 2)
274*0a6a1f1dSLionel Sambuc   return _mm_cmple_ss(__a, __b);
275*0a6a1f1dSLionel Sambuc }
276*0a6a1f1dSLionel Sambuc 
test_mm_cmpunord_ss(__m128 __a,__m128 __b)277*0a6a1f1dSLionel Sambuc __m128 test_mm_cmpunord_ss(__m128 __a, __m128 __b) {
278*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpunord_ss
279*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse.cmp.ss(<4 x float> %{{.*}}, <4 x float> %{{.*}}, i8 3)
280*0a6a1f1dSLionel Sambuc   return _mm_cmpunord_ss(__a, __b);
281*0a6a1f1dSLionel Sambuc }
282*0a6a1f1dSLionel Sambuc 
test_mm_cmpneq_ss(__m128 __a,__m128 __b)283*0a6a1f1dSLionel Sambuc __m128 test_mm_cmpneq_ss(__m128 __a, __m128 __b) {
284*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpneq_ss
285*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse.cmp.ss(<4 x float> %{{.*}}, <4 x float> %{{.*}}, i8 4)
286*0a6a1f1dSLionel Sambuc   return _mm_cmpneq_ss(__a, __b);
287*0a6a1f1dSLionel Sambuc }
288*0a6a1f1dSLionel Sambuc 
test_mm_cmpnlt_ss(__m128 __a,__m128 __b)289*0a6a1f1dSLionel Sambuc __m128 test_mm_cmpnlt_ss(__m128 __a, __m128 __b) {
290*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpnlt_ss
291*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse.cmp.ss(<4 x float> %{{.*}}, <4 x float> %{{.*}}, i8 5)
292*0a6a1f1dSLionel Sambuc   return _mm_cmpnlt_ss(__a, __b);
293*0a6a1f1dSLionel Sambuc }
294*0a6a1f1dSLionel Sambuc 
test_mm_cmpnle_ss(__m128 __a,__m128 __b)295*0a6a1f1dSLionel Sambuc __m128 test_mm_cmpnle_ss(__m128 __a, __m128 __b) {
296*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpnle_ss
297*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse.cmp.ss(<4 x float> %{{.*}}, <4 x float> %{{.*}}, i8 6)
298*0a6a1f1dSLionel Sambuc   return _mm_cmpnle_ss(__a, __b);
299*0a6a1f1dSLionel Sambuc }
300*0a6a1f1dSLionel Sambuc 
test_mm_cmpord_ss(__m128 __a,__m128 __b)301*0a6a1f1dSLionel Sambuc __m128 test_mm_cmpord_ss(__m128 __a, __m128 __b) {
302*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpord_ss
303*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse.cmp.ss(<4 x float> %{{.*}}, <4 x float> %{{.*}}, i8 7)
304*0a6a1f1dSLionel Sambuc   return _mm_cmpord_ss(__a, __b);
305*0a6a1f1dSLionel Sambuc }
306*0a6a1f1dSLionel Sambuc 
test_mm_cmpgt_ss(__m128 __a,__m128 __b)307*0a6a1f1dSLionel Sambuc __m128 test_mm_cmpgt_ss(__m128 __a, __m128 __b) {
308*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpgt_ss
309*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse.cmp.ss(<4 x float> %{{.*}}, <4 x float> %{{.*}}, i8 1)
310*0a6a1f1dSLionel Sambuc   return _mm_cmpgt_ss(__a, __b);
311*0a6a1f1dSLionel Sambuc }
312*0a6a1f1dSLionel Sambuc 
test_mm_cmpge_ss(__m128 __a,__m128 __b)313*0a6a1f1dSLionel Sambuc __m128 test_mm_cmpge_ss(__m128 __a, __m128 __b) {
314*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpge_ss
315*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse.cmp.ss(<4 x float> %{{.*}}, <4 x float> %{{.*}}, i8 2)
316*0a6a1f1dSLionel Sambuc   return _mm_cmpge_ss(__a, __b);
317*0a6a1f1dSLionel Sambuc }
318*0a6a1f1dSLionel Sambuc 
test_mm_cmpngt_ss(__m128 __a,__m128 __b)319*0a6a1f1dSLionel Sambuc __m128 test_mm_cmpngt_ss(__m128 __a, __m128 __b) {
320*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpngt_ss
321*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse.cmp.ss(<4 x float> %{{.*}}, <4 x float> %{{.*}}, i8 5)
322*0a6a1f1dSLionel Sambuc   return _mm_cmpngt_ss(__a, __b);
323*0a6a1f1dSLionel Sambuc }
324*0a6a1f1dSLionel Sambuc 
test_mm_cmpnge_ss(__m128 __a,__m128 __b)325*0a6a1f1dSLionel Sambuc __m128 test_mm_cmpnge_ss(__m128 __a, __m128 __b) {
326*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpnge_ss
327*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse.cmp.ss(<4 x float> %{{.*}}, <4 x float> %{{.*}}, i8 6)
328*0a6a1f1dSLionel Sambuc   return _mm_cmpnge_ss(__a, __b);
329*0a6a1f1dSLionel Sambuc }
330*0a6a1f1dSLionel Sambuc 
test_mm_cmpeq_ps(__m128 __a,__m128 __b)331*0a6a1f1dSLionel Sambuc __m128 test_mm_cmpeq_ps(__m128 __a, __m128 __b) {
332*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpeq_ps
333*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse.cmp.ps(<4 x float> %{{.*}}, <4 x float> %{{.*}}, i8 0)
334*0a6a1f1dSLionel Sambuc   return _mm_cmpeq_ps(__a, __b);
335*0a6a1f1dSLionel Sambuc }
336*0a6a1f1dSLionel Sambuc 
test_mm_cmplt_ps(__m128 __a,__m128 __b)337*0a6a1f1dSLionel Sambuc __m128 test_mm_cmplt_ps(__m128 __a, __m128 __b) {
338*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmplt_ps
339*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse.cmp.ps(<4 x float> %{{.*}}, <4 x float> %{{.*}}, i8 1)
340*0a6a1f1dSLionel Sambuc   return _mm_cmplt_ps(__a, __b);
341*0a6a1f1dSLionel Sambuc }
342*0a6a1f1dSLionel Sambuc 
test_mm_cmple_ps(__m128 __a,__m128 __b)343*0a6a1f1dSLionel Sambuc __m128 test_mm_cmple_ps(__m128 __a, __m128 __b) {
344*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmple_ps
345*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse.cmp.ps(<4 x float> %{{.*}}, <4 x float> %{{.*}}, i8 2)
346*0a6a1f1dSLionel Sambuc   return _mm_cmple_ps(__a, __b);
347*0a6a1f1dSLionel Sambuc }
348*0a6a1f1dSLionel Sambuc 
test_mm_cmpunord_ps(__m128 __a,__m128 __b)349*0a6a1f1dSLionel Sambuc __m128 test_mm_cmpunord_ps(__m128 __a, __m128 __b) {
350*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpunord_ps
351*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse.cmp.ps(<4 x float> %{{.*}}, <4 x float> %{{.*}}, i8 3)
352*0a6a1f1dSLionel Sambuc   return _mm_cmpunord_ps(__a, __b);
353*0a6a1f1dSLionel Sambuc }
354*0a6a1f1dSLionel Sambuc 
test_mm_cmpneq_ps(__m128 __a,__m128 __b)355*0a6a1f1dSLionel Sambuc __m128 test_mm_cmpneq_ps(__m128 __a, __m128 __b) {
356*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpneq_ps
357*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse.cmp.ps(<4 x float> %{{.*}}, <4 x float> %{{.*}}, i8 4)
358*0a6a1f1dSLionel Sambuc   return _mm_cmpneq_ps(__a, __b);
359*0a6a1f1dSLionel Sambuc }
360*0a6a1f1dSLionel Sambuc 
test_mm_cmpnlt_ps(__m128 __a,__m128 __b)361*0a6a1f1dSLionel Sambuc __m128 test_mm_cmpnlt_ps(__m128 __a, __m128 __b) {
362*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpnlt_ps
363*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse.cmp.ps(<4 x float> %{{.*}}, <4 x float> %{{.*}}, i8 5)
364*0a6a1f1dSLionel Sambuc   return _mm_cmpnlt_ps(__a, __b);
365*0a6a1f1dSLionel Sambuc }
366*0a6a1f1dSLionel Sambuc 
test_mm_cmpnle_ps(__m128 __a,__m128 __b)367*0a6a1f1dSLionel Sambuc __m128 test_mm_cmpnle_ps(__m128 __a, __m128 __b) {
368*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpnle_ps
369*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse.cmp.ps(<4 x float> %{{.*}}, <4 x float> %{{.*}}, i8 6)
370*0a6a1f1dSLionel Sambuc   return _mm_cmpnle_ps(__a, __b);
371*0a6a1f1dSLionel Sambuc }
372*0a6a1f1dSLionel Sambuc 
test_mm_cmpord_ps(__m128 __a,__m128 __b)373*0a6a1f1dSLionel Sambuc __m128 test_mm_cmpord_ps(__m128 __a, __m128 __b) {
374*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpord_ps
375*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse.cmp.ps(<4 x float> %{{.*}}, <4 x float> %{{.*}}, i8 7)
376*0a6a1f1dSLionel Sambuc   return _mm_cmpord_ps(__a, __b);
377*0a6a1f1dSLionel Sambuc }
378*0a6a1f1dSLionel Sambuc 
test_mm_cmpgt_ps(__m128 __a,__m128 __b)379*0a6a1f1dSLionel Sambuc __m128 test_mm_cmpgt_ps(__m128 __a, __m128 __b) {
380*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpgt_ps
381*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse.cmp.ps(<4 x float> %{{.*}}, <4 x float> %{{.*}}, i8 1)
382*0a6a1f1dSLionel Sambuc   return _mm_cmpgt_ps(__a, __b);
383*0a6a1f1dSLionel Sambuc }
384*0a6a1f1dSLionel Sambuc 
test_mm_cmpge_ps(__m128 __a,__m128 __b)385*0a6a1f1dSLionel Sambuc __m128 test_mm_cmpge_ps(__m128 __a, __m128 __b) {
386*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpge_ps
387*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse.cmp.ps(<4 x float> %{{.*}}, <4 x float> %{{.*}}, i8 2)
388*0a6a1f1dSLionel Sambuc   return _mm_cmpge_ps(__a, __b);
389*0a6a1f1dSLionel Sambuc }
390*0a6a1f1dSLionel Sambuc 
test_mm_cmpngt_ps(__m128 __a,__m128 __b)391*0a6a1f1dSLionel Sambuc __m128 test_mm_cmpngt_ps(__m128 __a, __m128 __b) {
392*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpngt_ps
393*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse.cmp.ps(<4 x float> %{{.*}}, <4 x float> %{{.*}}, i8 5)
394*0a6a1f1dSLionel Sambuc   return _mm_cmpngt_ps(__a, __b);
395*0a6a1f1dSLionel Sambuc }
396*0a6a1f1dSLionel Sambuc 
test_mm_cmpnge_ps(__m128 __a,__m128 __b)397*0a6a1f1dSLionel Sambuc __m128 test_mm_cmpnge_ps(__m128 __a, __m128 __b) {
398*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpnge_ps
399*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse.cmp.ps(<4 x float> %{{.*}}, <4 x float> %{{.*}}, i8 6)
400*0a6a1f1dSLionel Sambuc   return _mm_cmpnge_ps(__a, __b);
401*0a6a1f1dSLionel Sambuc }
402*0a6a1f1dSLionel Sambuc 
test_mm_cmpeq_sd(__m128d __a,__m128d __b)403*0a6a1f1dSLionel Sambuc __m128d test_mm_cmpeq_sd(__m128d __a, __m128d __b) {
404*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpeq_sd
405*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse2.cmp.sd(<2 x double> %{{.*}}, <2 x double> %{{.*}}, i8 0)
406*0a6a1f1dSLionel Sambuc   return _mm_cmpeq_sd(__a, __b);
407*0a6a1f1dSLionel Sambuc }
408*0a6a1f1dSLionel Sambuc 
test_mm_cmplt_sd(__m128d __a,__m128d __b)409*0a6a1f1dSLionel Sambuc __m128d test_mm_cmplt_sd(__m128d __a, __m128d __b) {
410*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmplt_sd
411*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse2.cmp.sd(<2 x double> %{{.*}}, <2 x double> %{{.*}}, i8 1)
412*0a6a1f1dSLionel Sambuc   return _mm_cmplt_sd(__a, __b);
413*0a6a1f1dSLionel Sambuc }
414*0a6a1f1dSLionel Sambuc 
test_mm_cmple_sd(__m128d __a,__m128d __b)415*0a6a1f1dSLionel Sambuc __m128d test_mm_cmple_sd(__m128d __a, __m128d __b) {
416*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmple_sd
417*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse2.cmp.sd(<2 x double> %{{.*}}, <2 x double> %{{.*}}, i8 2)
418*0a6a1f1dSLionel Sambuc   return _mm_cmple_sd(__a, __b);
419*0a6a1f1dSLionel Sambuc }
420*0a6a1f1dSLionel Sambuc 
test_mm_cmpunord_sd(__m128d __a,__m128d __b)421*0a6a1f1dSLionel Sambuc __m128d test_mm_cmpunord_sd(__m128d __a, __m128d __b) {
422*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpunord_sd
423*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse2.cmp.sd(<2 x double> %{{.*}}, <2 x double> %{{.*}}, i8 3)
424*0a6a1f1dSLionel Sambuc   return _mm_cmpunord_sd(__a, __b);
425*0a6a1f1dSLionel Sambuc }
426*0a6a1f1dSLionel Sambuc 
test_mm_cmpneq_sd(__m128d __a,__m128d __b)427*0a6a1f1dSLionel Sambuc __m128d test_mm_cmpneq_sd(__m128d __a, __m128d __b) {
428*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpneq_sd
429*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse2.cmp.sd(<2 x double> %{{.*}}, <2 x double> %{{.*}}, i8 4)
430*0a6a1f1dSLionel Sambuc   return _mm_cmpneq_sd(__a, __b);
431*0a6a1f1dSLionel Sambuc }
432*0a6a1f1dSLionel Sambuc 
test_mm_cmpnlt_sd(__m128d __a,__m128d __b)433*0a6a1f1dSLionel Sambuc __m128d test_mm_cmpnlt_sd(__m128d __a, __m128d __b) {
434*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpnlt_sd
435*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse2.cmp.sd(<2 x double> %{{.*}}, <2 x double> %{{.*}}, i8 5)
436*0a6a1f1dSLionel Sambuc   return _mm_cmpnlt_sd(__a, __b);
437*0a6a1f1dSLionel Sambuc }
438*0a6a1f1dSLionel Sambuc 
test_mm_cmpnle_sd(__m128d __a,__m128d __b)439*0a6a1f1dSLionel Sambuc __m128d test_mm_cmpnle_sd(__m128d __a, __m128d __b) {
440*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpnle_sd
441*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse2.cmp.sd(<2 x double> %{{.*}}, <2 x double> %{{.*}}, i8 6)
442*0a6a1f1dSLionel Sambuc   return _mm_cmpnle_sd(__a, __b);
443*0a6a1f1dSLionel Sambuc }
444*0a6a1f1dSLionel Sambuc 
test_mm_cmpord_sd(__m128d __a,__m128d __b)445*0a6a1f1dSLionel Sambuc __m128d test_mm_cmpord_sd(__m128d __a, __m128d __b) {
446*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpord_sd
447*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse2.cmp.sd(<2 x double> %{{.*}}, <2 x double> %{{.*}}, i8 7)
448*0a6a1f1dSLionel Sambuc   return _mm_cmpord_sd(__a, __b);
449*0a6a1f1dSLionel Sambuc }
450*0a6a1f1dSLionel Sambuc 
test_mm_cmpgt_sd(__m128d __a,__m128d __b)451*0a6a1f1dSLionel Sambuc __m128d test_mm_cmpgt_sd(__m128d __a, __m128d __b) {
452*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpgt_sd
453*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse2.cmp.sd(<2 x double> %{{.*}}, <2 x double> %{{.*}}, i8 1)
454*0a6a1f1dSLionel Sambuc   return _mm_cmpgt_sd(__a, __b);
455*0a6a1f1dSLionel Sambuc }
456*0a6a1f1dSLionel Sambuc 
test_mm_cmpge_sd(__m128d __a,__m128d __b)457*0a6a1f1dSLionel Sambuc __m128d test_mm_cmpge_sd(__m128d __a, __m128d __b) {
458*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpge_sd
459*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse2.cmp.sd(<2 x double> %{{.*}}, <2 x double> %{{.*}}, i8 2)
460*0a6a1f1dSLionel Sambuc   return _mm_cmpge_sd(__a, __b);
461*0a6a1f1dSLionel Sambuc }
462*0a6a1f1dSLionel Sambuc 
test_mm_cmpngt_sd(__m128d __a,__m128d __b)463*0a6a1f1dSLionel Sambuc __m128d test_mm_cmpngt_sd(__m128d __a, __m128d __b) {
464*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpngt_sd
465*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse2.cmp.sd(<2 x double> %{{.*}}, <2 x double> %{{.*}}, i8 5)
466*0a6a1f1dSLionel Sambuc   return _mm_cmpngt_sd(__a, __b);
467*0a6a1f1dSLionel Sambuc }
468*0a6a1f1dSLionel Sambuc 
test_mm_cmpnge_sd(__m128d __a,__m128d __b)469*0a6a1f1dSLionel Sambuc __m128d test_mm_cmpnge_sd(__m128d __a, __m128d __b) {
470*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpnge_sd
471*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse2.cmp.sd(<2 x double> %{{.*}}, <2 x double> %{{.*}}, i8 6)
472*0a6a1f1dSLionel Sambuc   return _mm_cmpnge_sd(__a, __b);
473*0a6a1f1dSLionel Sambuc }
474*0a6a1f1dSLionel Sambuc 
test_mm_cmpeq_pd(__m128d __a,__m128d __b)475*0a6a1f1dSLionel Sambuc __m128d test_mm_cmpeq_pd(__m128d __a, __m128d __b) {
476*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpeq_pd
477*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse2.cmp.pd(<2 x double> %{{.*}}, <2 x double> %{{.*}}, i8 0)
478*0a6a1f1dSLionel Sambuc   return _mm_cmpeq_pd(__a, __b);
479*0a6a1f1dSLionel Sambuc }
480*0a6a1f1dSLionel Sambuc 
test_mm_cmplt_pd(__m128d __a,__m128d __b)481*0a6a1f1dSLionel Sambuc __m128d test_mm_cmplt_pd(__m128d __a, __m128d __b) {
482*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmplt_pd
483*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse2.cmp.pd(<2 x double> %{{.*}}, <2 x double> %{{.*}}, i8 1)
484*0a6a1f1dSLionel Sambuc   return _mm_cmplt_pd(__a, __b);
485*0a6a1f1dSLionel Sambuc }
486*0a6a1f1dSLionel Sambuc 
test_mm_cmple_pd(__m128d __a,__m128d __b)487*0a6a1f1dSLionel Sambuc __m128d test_mm_cmple_pd(__m128d __a, __m128d __b) {
488*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmple_pd
489*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse2.cmp.pd(<2 x double> %{{.*}}, <2 x double> %{{.*}}, i8 2)
490*0a6a1f1dSLionel Sambuc   return _mm_cmple_pd(__a, __b);
491*0a6a1f1dSLionel Sambuc }
492*0a6a1f1dSLionel Sambuc 
test_mm_cmpunord_pd(__m128d __a,__m128d __b)493*0a6a1f1dSLionel Sambuc __m128d test_mm_cmpunord_pd(__m128d __a, __m128d __b) {
494*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpunord_pd
495*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse2.cmp.pd(<2 x double> %{{.*}}, <2 x double> %{{.*}}, i8 3)
496*0a6a1f1dSLionel Sambuc   return _mm_cmpunord_pd(__a, __b);
497*0a6a1f1dSLionel Sambuc }
498*0a6a1f1dSLionel Sambuc 
test_mm_cmpneq_pd(__m128d __a,__m128d __b)499*0a6a1f1dSLionel Sambuc __m128d test_mm_cmpneq_pd(__m128d __a, __m128d __b) {
500*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpneq_pd
501*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse2.cmp.pd(<2 x double> %{{.*}}, <2 x double> %{{.*}}, i8 4)
502*0a6a1f1dSLionel Sambuc   return _mm_cmpneq_pd(__a, __b);
503*0a6a1f1dSLionel Sambuc }
504*0a6a1f1dSLionel Sambuc 
test_mm_cmpnlt_pd(__m128d __a,__m128d __b)505*0a6a1f1dSLionel Sambuc __m128d test_mm_cmpnlt_pd(__m128d __a, __m128d __b) {
506*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpnlt_pd
507*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse2.cmp.pd(<2 x double> %{{.*}}, <2 x double> %{{.*}}, i8 5)
508*0a6a1f1dSLionel Sambuc   return _mm_cmpnlt_pd(__a, __b);
509*0a6a1f1dSLionel Sambuc }
510*0a6a1f1dSLionel Sambuc 
test_mm_cmpnle_pd(__m128d __a,__m128d __b)511*0a6a1f1dSLionel Sambuc __m128d test_mm_cmpnle_pd(__m128d __a, __m128d __b) {
512*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpnle_pd
513*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse2.cmp.pd(<2 x double> %{{.*}}, <2 x double> %{{.*}}, i8 6)
514*0a6a1f1dSLionel Sambuc   return _mm_cmpnle_pd(__a, __b);
515*0a6a1f1dSLionel Sambuc }
516*0a6a1f1dSLionel Sambuc 
test_mm_cmpord_pd(__m128d __a,__m128d __b)517*0a6a1f1dSLionel Sambuc __m128d test_mm_cmpord_pd(__m128d __a, __m128d __b) {
518*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpord_pd
519*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse2.cmp.pd(<2 x double> %{{.*}}, <2 x double> %{{.*}}, i8 7)
520*0a6a1f1dSLionel Sambuc   return _mm_cmpord_pd(__a, __b);
521*0a6a1f1dSLionel Sambuc }
522*0a6a1f1dSLionel Sambuc 
test_mm_cmpgt_pd(__m128d __a,__m128d __b)523*0a6a1f1dSLionel Sambuc __m128d test_mm_cmpgt_pd(__m128d __a, __m128d __b) {
524*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpgt_pd
525*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse2.cmp.pd(<2 x double> %{{.*}}, <2 x double> %{{.*}}, i8 1)
526*0a6a1f1dSLionel Sambuc   return _mm_cmpgt_pd(__a, __b);
527*0a6a1f1dSLionel Sambuc }
528*0a6a1f1dSLionel Sambuc 
test_mm_cmpge_pd(__m128d __a,__m128d __b)529*0a6a1f1dSLionel Sambuc __m128d test_mm_cmpge_pd(__m128d __a, __m128d __b) {
530*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpge_pd
531*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse2.cmp.pd(<2 x double> %{{.*}}, <2 x double> %{{.*}}, i8 2)
532*0a6a1f1dSLionel Sambuc   return _mm_cmpge_pd(__a, __b);
533*0a6a1f1dSLionel Sambuc }
534*0a6a1f1dSLionel Sambuc 
test_mm_cmpngt_pd(__m128d __a,__m128d __b)535*0a6a1f1dSLionel Sambuc __m128d test_mm_cmpngt_pd(__m128d __a, __m128d __b) {
536*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpngt_pd
537*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse2.cmp.pd(<2 x double> %{{.*}}, <2 x double> %{{.*}}, i8 5)
538*0a6a1f1dSLionel Sambuc   return _mm_cmpngt_pd(__a, __b);
539*0a6a1f1dSLionel Sambuc }
540*0a6a1f1dSLionel Sambuc 
test_mm_cmpnge_pd(__m128d __a,__m128d __b)541*0a6a1f1dSLionel Sambuc __m128d test_mm_cmpnge_pd(__m128d __a, __m128d __b) {
542*0a6a1f1dSLionel Sambuc   // CHECK-LABEL: @test_mm_cmpnge_pd
543*0a6a1f1dSLionel Sambuc   // CHECK: @llvm.x86.sse2.cmp.pd(<2 x double> %{{.*}}, <2 x double> %{{.*}}, i8 6)
544*0a6a1f1dSLionel Sambuc   return _mm_cmpnge_pd(__a, __b);
545*0a6a1f1dSLionel Sambuc }
546