summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2016-05-30 18:42:51 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2016-05-30 18:42:51 +0000
commitd64af65f6d377d3c76a5a90d311be5793be75a10 (patch)
tree18da847619028fb49fc2d2ebf3d3078a962dbf94 /llvm/test/CodeGen
parent6dd78e49544299c6e2a4af07b568d127b3a5a991 (diff)
downloadbcm5719-llvm-d64af65f6d377d3c76a5a90d311be5793be75a10.tar.gz
bcm5719-llvm-d64af65f6d377d3c76a5a90d311be5793be75a10.zip
[X86][SSE] Updated storeu fast-isel tests to match clang builtin tests
Since rL271214 the headers have no longer used the storeu intrinsic llvm-svn: 271222
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/X86/avx-intrinsics-fast-isel.ll33
-rw-r--r--llvm/test/CodeGen/X86/sse-intrinsics-fast-isel.ll5
-rw-r--r--llvm/test/CodeGen/X86/sse2-intrinsics-fast-isel.ll10
3 files changed, 19 insertions, 29 deletions
diff --git a/llvm/test/CodeGen/X86/avx-intrinsics-fast-isel.ll b/llvm/test/CodeGen/X86/avx-intrinsics-fast-isel.ll
index e506d85b40e..786bcca373f 100644
--- a/llvm/test/CodeGen/X86/avx-intrinsics-fast-isel.ll
+++ b/llvm/test/CodeGen/X86/avx-intrinsics-fast-isel.ll
@@ -3144,15 +3144,14 @@ define void @test_mm256_storeu2_m128(float* %a0, float* %a1, <8 x float> %a2) no
; X64-NEXT: vmovups %xmm0, (%rsi)
; X64-NEXT: vzeroupper
; X64-NEXT: retq
- %arg0 = bitcast float* %a0 to i8*
+ %arg0 = bitcast float* %a0 to <4 x float>*
%lo = shufflevector <8 x float> %a2, <8 x float> %a2, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
- call void @llvm.x86.sse.storeu.ps(i8* %arg0, <4 x float> %lo)
- %arg1 = bitcast float* %a1 to i8*
+ store <4 x float> %lo, <4 x float>* %arg0, align 1
+ %arg1 = bitcast float* %a1 to <4 x float>*
%hi = shufflevector <8 x float> %a2, <8 x float> %a2, <4 x i32> <i32 4, i32 5, i32 6, i32 7>
- call void @llvm.x86.sse.storeu.ps(i8* %arg1, <4 x float> %hi)
+ store <4 x float> %hi, <4 x float>* %arg1, align 1
ret void
}
-declare void @llvm.x86.sse.storeu.ps(i8*, <4 x float>) nounwind readnone
define void @test_mm256_storeu2_m128d(double* %a0, double* %a1, <4 x double> %a2) nounwind {
; X32-LABEL: test_mm256_storeu2_m128d:
@@ -3172,15 +3171,14 @@ define void @test_mm256_storeu2_m128d(double* %a0, double* %a1, <4 x double> %a2
; X64-NEXT: vmovups %xmm0, (%rsi)
; X64-NEXT: vzeroupper
; X64-NEXT: retq
- %arg0 = bitcast double* %a0 to i8*
+ %arg0 = bitcast double* %a0 to <2 x double>*
%lo = shufflevector <4 x double> %a2, <4 x double> %a2, <2 x i32> <i32 0, i32 1>
- call void @llvm.x86.sse2.storeu.pd(i8* %arg0, <2 x double> %lo)
- %arg1 = bitcast double* %a1 to i8*
+ store <2 x double> %lo, <2 x double>* %arg0, align 1
+ %arg1 = bitcast double* %a1 to <2 x double>*
%hi = shufflevector <4 x double> %a2, <4 x double> %a2, <2 x i32> <i32 2, i32 3>
- call void @llvm.x86.sse2.storeu.pd(i8* %arg1, <2 x double> %hi)
+ store <2 x double> %hi, <2 x double>* %arg1, align 1
ret void
}
-declare void @llvm.x86.sse2.storeu.pd(i8*, <2 x double>) nounwind readnone
define void @test_mm256_storeu2_m128i(<2 x i64>* %a0, <2 x i64>* %a1, <4 x i64> %a2) nounwind {
; X32-LABEL: test_mm256_storeu2_m128i:
@@ -3200,17 +3198,14 @@ define void @test_mm256_storeu2_m128i(<2 x i64>* %a0, <2 x i64>* %a1, <4 x i64>
; X64-NEXT: vmovups %xmm0, (%rsi)
; X64-NEXT: vzeroupper
; X64-NEXT: retq
- %arg0 = bitcast <2 x i64>* %a0 to i8*
- %lo2 = shufflevector <4 x i64> %a2, <4 x i64> %a2, <2 x i32> <i32 0, i32 1>
- %lo = bitcast <2 x i64> %lo2 to <16 x i8>
- call void @llvm.x86.sse2.storeu.dq(i8* %arg0, <16 x i8> %lo)
- %arg1 = bitcast <2 x i64>* %a1 to i8*
- %hi2 = shufflevector <4 x i64> %a2, <4 x i64> %a2, <2 x i32> <i32 2, i32 3>
- %hi = bitcast <2 x i64> %hi2 to <16 x i8>
- call void @llvm.x86.sse2.storeu.dq(i8* %arg1, <16 x i8> %hi)
+ %arg0 = bitcast <2 x i64>* %a0 to <2 x i64>*
+ %lo = shufflevector <4 x i64> %a2, <4 x i64> %a2, <2 x i32> <i32 0, i32 1>
+ store <2 x i64> %lo, <2 x i64>* %arg0, align 1
+ %arg1 = bitcast <2 x i64>* %a1 to <2 x i64>*
+ %hi = shufflevector <4 x i64> %a2, <4 x i64> %a2, <2 x i32> <i32 2, i32 3>
+ store <2 x i64> %hi, <2 x i64>* %arg1, align 1
ret void
}
-declare void @llvm.x86.sse2.storeu.dq(i8*, <16 x i8>) nounwind readnone
define void @test_mm256_stream_pd(double *%a0, <4 x double> %a1) nounwind {
; X32-LABEL: test_mm256_stream_pd:
diff --git a/llvm/test/CodeGen/X86/sse-intrinsics-fast-isel.ll b/llvm/test/CodeGen/X86/sse-intrinsics-fast-isel.ll
index a762fa07fcd..8d7f6c33e6d 100644
--- a/llvm/test/CodeGen/X86/sse-intrinsics-fast-isel.ll
+++ b/llvm/test/CodeGen/X86/sse-intrinsics-fast-isel.ll
@@ -1920,11 +1920,10 @@ define void @test_mm_storeu_ps(float *%a0, <4 x float> %a1) {
; X64: # BB#0:
; X64-NEXT: movups %xmm0, (%rdi)
; X64-NEXT: retq
- %arg0 = bitcast float* %a0 to i8*
- call void @llvm.x86.sse.storeu.ps(i8* %arg0, <4 x float> %a1)
+ %arg0 = bitcast float* %a0 to <4 x float>*
+ store <4 x float> %a1, <4 x float>* %arg0, align 1
ret void
}
-declare void @llvm.x86.sse.storeu.ps(i8*, <4 x float>) nounwind
define void @test_mm_stream_ps(float *%a0, <4 x float> %a1) {
; X32-LABEL: test_mm_stream_ps:
diff --git a/llvm/test/CodeGen/X86/sse2-intrinsics-fast-isel.ll b/llvm/test/CodeGen/X86/sse2-intrinsics-fast-isel.ll
index 03e9130c97e..adee24430ee 100644
--- a/llvm/test/CodeGen/X86/sse2-intrinsics-fast-isel.ll
+++ b/llvm/test/CodeGen/X86/sse2-intrinsics-fast-isel.ll
@@ -3255,11 +3255,10 @@ define void @test_mm_storeu_pd(double *%a0, <2 x double> %a1) {
; X64: # BB#0:
; X64-NEXT: movups %xmm0, (%rdi)
; X64-NEXT: retq
- %arg0 = bitcast double* %a0 to i8*
- call void @llvm.x86.sse2.storeu.pd(i8* %arg0, <2 x double> %a1)
+ %arg0 = bitcast double* %a0 to <2 x double>*
+ store <2 x double> %a1, <2 x double>* %arg0, align 1
ret void
}
-declare void @llvm.x86.sse2.storeu.pd(i8*, <2 x double>) nounwind
define void @test_mm_storeu_si128(<2 x i64> *%a0, <2 x i64> %a1) {
; X32-LABEL: test_mm_storeu_si128:
@@ -3272,12 +3271,9 @@ define void @test_mm_storeu_si128(<2 x i64> *%a0, <2 x i64> %a1) {
; X64: # BB#0:
; X64-NEXT: movups %xmm0, (%rdi)
; X64-NEXT: retq
- %arg0 = bitcast <2 x i64>* %a0 to i8*
- %arg1 = bitcast <2 x i64> %a1 to <16 x i8>
- call void @llvm.x86.sse2.storeu.dq(i8* %arg0, <16 x i8> %arg1)
+ store <2 x i64> %a1, <2 x i64>* %a0, align 1
ret void
}
-declare void @llvm.x86.sse2.storeu.dq(i8*, <16 x i8>) nounwind
define void @test_mm_stream_pd(double *%a0, <2 x double> %a1) {
; X32-LABEL: test_mm_stream_pd:
OpenPOWER on IntegriCloud