r270664 - [X86] Update test cases to make sure storeu builtins use the storeu instrinsics. We were previously matching on other stores in the IR from this being an -O0 test.
Craig Topper via cfe-commits
cfe-commits at lists.llvm.org
Tue May 24 22:26:23 PDT 2016
Author: ctopper
Date: Wed May 25 00:26:23 2016
New Revision: 270664
URL: http://llvm.org/viewvc/llvm-project?rev=270664&view=rev
Log:
[X86] Update test cases to make sure storeu builtins use the storeu instrinsics. We were previously matching on other stores in the IR from this being an -O0 test.
We should probably look into making the storeu builtins just emit a normal store with an alignment of 1.
Modified:
cfe/trunk/test/CodeGen/sse-builtins.c
cfe/trunk/test/CodeGen/sse2-builtins.c
Modified: cfe/trunk/test/CodeGen/sse-builtins.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/sse-builtins.c?rev=270664&r1=270663&r2=270664&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/sse-builtins.c (original)
+++ cfe/trunk/test/CodeGen/sse-builtins.c Wed May 25 00:26:23 2016
@@ -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
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);
}
Modified: cfe/trunk/test/CodeGen/sse2-builtins.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/sse2-builtins.c?rev=270664&r1=270663&r2=270664&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/sse2-builtins.c (original)
+++ cfe/trunk/test/CodeGen/sse2-builtins.c Wed May 25 00:26:23 2016
@@ -1256,13 +1256,13 @@ void test_mm_storer_pd(__m128d A, double
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);
}
More information about the cfe-commits
mailing list