]> granicus.if.org Git - clang/commitdiff
[X86] Update test cases to make sure storeu builtins use the storeu instrinsics....
authorCraig Topper <craig.topper@gmail.com>
Wed, 25 May 2016 05:26:23 +0000 (05:26 +0000)
committerCraig Topper <craig.topper@gmail.com>
Wed, 25 May 2016 05:26:23 +0000 (05:26 +0000)
We should probably look into making the storeu builtins just emit a normal store with an alignment of 1.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@270664 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/sse-builtins.c
test/CodeGen/sse2-builtins.c

index 06a199a933e0a62cd29c1cd0259ceae22a5c3142..86aa6d7c0082c60e779a9b40e550d18af414f200 100644 (file)
@@ -665,7 +665,7 @@ void test_mm_store_ss(float* x, __m128 y) {
 void test_mm_store1_ps(float* x, __m128 y) {
   // CHECK-LABEL: test_mm_store1_ps
   // CHECK: shufflevector <4 x float> %{{.*}}, <4 x float> %{{.*}}, <4 x i32> zeroinitializer
-  // CHECK: store <4 x float> %{{.*}}, <4 x float>* {{.*}}, align 16
+  // CHECK: call void @llvm.x86.sse.storeu.ps(i8* %{{.*}}, <4 x float> %{{.*}})
   _mm_store1_ps(x, y);
 }
 
@@ -694,7 +694,7 @@ void test_mm_storer_ps(float* x,  __m128 y) {
 
 void test_mm_storeu_ps(float* x,  __m128 y) {
   // CHECK-LABEL: test_mm_storeu_ps
-  // CHECK: store <4 x float> %{{.*}}, <4 x float>* {{.*}}, align 1
+  // CHECK: call void @llvm.x86.sse.storeu.ps(i8* %{{.*}}, <4 x float> %{{.*}})
   _mm_storeu_ps(x, y);
 }
 
index 3a9b6401807bdce7014b4feff3a0c987a72d3740..919c1a629a742fb28430e9cc6aeb9202b846d382 100644 (file)
@@ -1256,13 +1256,13 @@ void test_mm_storer_pd(__m128d A, double* B) {
 
 void test_mm_storeu_pd(double* A, __m128d B) {
   // CHECK-LABEL: test_mm_storeu_pd
-  // CHECK: store <2 x double> %{{.*}}, <2 x double>* %{{.*}}, align 1
+  // CHECK: call void @llvm.x86.sse2.storeu.pd(i8* %{{.*}}, <2 x double> %{{.*}})
   _mm_storeu_pd(A, B);
 }
 
 void test_mm_storeu_si128(__m128i* A, __m128i B) {
   // CHECK-LABEL: test_mm_storeu_si128
-  // CHECK: store <2 x i64> %{{.*}}, <2 x i64>* %{{.*}}, align 1
+  // CHECK: call void @llvm.x86.sse2.storeu.dq(i8* %{{.*}}, <16 x i8> %{{.*}})
   _mm_storeu_si128(A, B);
 }