r269926 - [X86][SSE41] Sync with llvm/test/CodeGen/X86/sse41-intrinsics-fast-isel.ll
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Wed May 18 06:47:16 PDT 2016
Author: rksimon
Date: Wed May 18 08:47:16 2016
New Revision: 269926
URL: http://llvm.org/viewvc/llvm-project?rev=269926&view=rev
Log:
[X86][SSE41] Sync with llvm/test/CodeGen/X86/sse41-intrinsics-fast-isel.ll
Modified:
cfe/trunk/test/CodeGen/sse41-builtins.c
Modified: cfe/trunk/test/CodeGen/sse41-builtins.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/sse41-builtins.c?rev=269926&r1=269925&r2=269926&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/sse41-builtins.c (original)
+++ cfe/trunk/test/CodeGen/sse41-builtins.c Wed May 18 08:47:16 2016
@@ -155,21 +155,21 @@ __m128i test_mm_cvtepu32_epi64(__m128i a
__m128d test_mm_dp_pd(__m128d x, __m128d y) {
// CHECK-LABEL: test_mm_dp_pd
- // CHECK: call <2 x double> @llvm.x86.sse41.dppd
- return _mm_dp_pd(x, y, 2);
+ // CHECK: call <2 x double> @llvm.x86.sse41.dppd(<2 x double> {{.*}}, <2 x double> {{.*}}, i8 7)
+ return _mm_dp_pd(x, y, 7);
}
__m128 test_mm_dp_ps(__m128 x, __m128 y) {
// CHECK-LABEL: test_mm_dp_ps
- // CHECK: call <4 x float> @llvm.x86.sse41.dpps
- return _mm_dp_ps(x, y, 2);
+ // CHECK: call <4 x float> @llvm.x86.sse41.dpps(<4 x float> {{.*}}, <4 x float> {{.*}}, i8 7)
+ return _mm_dp_ps(x, y, 7);
}
int test_mm_extract_epi8(__m128i x) {
// CHECK-LABEL: test_mm_extract_epi8
- // CHECK: extractelement <16 x i8> %{{.*}}, i32 0
+ // CHECK: extractelement <16 x i8> %{{.*}}, i32 1
// CHECK: zext i8 %{{.*}} to i32
- return _mm_extract_epi8(x, 16);
+ return _mm_extract_epi8(x, 1);
}
int test_mm_extract_epi32(__m128i x) {
@@ -233,8 +233,8 @@ __m128i test_mm_insert_epi64(__m128i x,
__m128 test_mm_insert_ps(__m128 x, __m128 y) {
// CHECK-LABEL: test_mm_insert_ps
- // CHECK: call <4 x float> @llvm.x86.sse41.insertps(<4 x float> %{{.*}}, <4 x float> %{{.*}}, i8 5)
- return _mm_insert_ps(x, y, 5);
+ // CHECK: call <4 x float> @llvm.x86.sse41.insertps(<4 x float> %{{.*}}, <4 x float> %{{.*}}, i8 4)
+ return _mm_insert_ps(x, y, 4);
}
__m128i test_mm_max_epi8(__m128i x, __m128i y) {
@@ -243,18 +243,18 @@ __m128i test_mm_max_epi8(__m128i x, __m1
return _mm_max_epi8(x, y);
}
-__m128i test_mm_max_epu16(__m128i x, __m128i y) {
- // CHECK-LABEL: test_mm_max_epu16
- // CHECK: call <8 x i16> @llvm.x86.sse41.pmaxuw(<8 x i16> %{{.*}}, <8 x i16> %{{.*}})
- return _mm_max_epu16(x, y);
-}
-
__m128i test_mm_max_epi32(__m128i x, __m128i y) {
// CHECK-LABEL: test_mm_max_epi32
// CHECK: call <4 x i32> @llvm.x86.sse41.pmaxsd(<4 x i32> %{{.*}}, <4 x i32> %{{.*}})
return _mm_max_epi32(x, y);
}
+__m128i test_mm_max_epu16(__m128i x, __m128i y) {
+ // CHECK-LABEL: test_mm_max_epu16
+ // CHECK: call <8 x i16> @llvm.x86.sse41.pmaxuw(<8 x i16> %{{.*}}, <8 x i16> %{{.*}})
+ return _mm_max_epu16(x, y);
+}
+
__m128i test_mm_max_epu32(__m128i x, __m128i y) {
// CHECK-LABEL: test_mm_max_epu32
// CHECK: call <4 x i32> @llvm.x86.sse41.pmaxud(<4 x i32> %{{.*}}, <4 x i32> %{{.*}})
@@ -267,18 +267,18 @@ __m128i test_mm_min_epi8(__m128i x, __m1
return _mm_min_epi8(x, y);
}
-__m128i test_mm_min_epu16(__m128i x, __m128i y) {
- // CHECK-LABEL: test_mm_min_epu16
- // CHECK: call <8 x i16> @llvm.x86.sse41.pminuw(<8 x i16> %{{.*}}, <8 x i16> %{{.*}})
- return _mm_min_epu16(x, y);
-}
-
__m128i test_mm_min_epi32(__m128i x, __m128i y) {
// CHECK-LABEL: test_mm_min_epi32
// CHECK: call <4 x i32> @llvm.x86.sse41.pminsd(<4 x i32> %{{.*}}, <4 x i32> %{{.*}})
return _mm_min_epi32(x, y);
}
+__m128i test_mm_min_epu16(__m128i x, __m128i y) {
+ // CHECK-LABEL: test_mm_min_epu16
+ // CHECK: call <8 x i16> @llvm.x86.sse41.pminuw(<8 x i16> %{{.*}}, <8 x i16> %{{.*}})
+ return _mm_min_epu16(x, y);
+}
+
__m128i test_mm_min_epu32(__m128i x, __m128i y) {
// CHECK-LABEL: test_mm_min_epu32
// CHECK: call <4 x i32> @llvm.x86.sse41.pminud(<4 x i32> %{{.*}}, <4 x i32> %{{.*}})
More information about the cfe-commits
mailing list