summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/vrev.ll
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2011-05-18 21:44:54 +0000
committerTanya Lattner <tonic@nondot.org>2011-05-18 21:44:54 +0000
commitdb28247522af0a6190c9cab8dc32e7d4df9f5509 (patch)
treea3f04ea5338123d696227839a6b50f6b735e9084 /test/CodeGen/ARM/vrev.ll
parent10a818809df9fe1c171451d0bb8213716b12638f (diff)
downloadllvm-db28247522af0a6190c9cab8dc32e7d4df9f5509.tar.gz
llvm-db28247522af0a6190c9cab8dc32e7d4df9f5509.tar.bz2
llvm-db28247522af0a6190c9cab8dc32e7d4df9f5509.tar.xz
Handle perfect shuffle case that generates a vrev for vectors of floats.
Add test case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131582 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/vrev.ll')
-rw-r--r--test/CodeGen/ARM/vrev.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/vrev.ll b/test/CodeGen/ARM/vrev.ll
index 0f0ea2b932..34acd1678a 100644
--- a/test/CodeGen/ARM/vrev.ll
+++ b/test/CodeGen/ARM/vrev.ll
@@ -163,3 +163,18 @@ entry:
store <2 x i16> %tmp11, <2 x i16>* %dst, align 4
ret void
}
+
+; Test vrev of float4
+define void @float_vrev64(float* nocapture %source, <4 x float>* nocapture %dest) nounwind noinline ssp {
+; CHECK: float_vrev64
+; CHECK: vext.32
+; CHECK: vrev64.32
+entry:
+ %0 = bitcast float* %source to <4 x float>*
+ %tmp2 = load <4 x float>* %0, align 4
+ %tmp5 = shufflevector <4 x float> <float 0.000000e+00, float undef, float undef, float undef>, <4 x float> %tmp2, <4 x i32> <i32 0, i32 7, i32 0, i32 0>
+ %arrayidx8 = getelementptr inbounds <4 x float>* %dest, i32 11
+ store <4 x float> %tmp5, <4 x float>* %arrayidx8, align 4
+ ret void
+}
+