summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit1d11720ae474beba2fc8e6d47fcfd824e058daa4 (patch)
tree99deba6728c9834fc66a999d4e75e4ea367adb10 /llvm/test/CodeGen/ARM/vrev.ll
parentfadb03d6cc3df81217c1034ac2455d021b965c24 (diff)
downloadbcm5719-llvm-1d11720ae474beba2fc8e6d47fcfd824e058daa4.tar.gz
bcm5719-llvm-1d11720ae474beba2fc8e6d47fcfd824e058daa4.zip
Handle perfect shuffle case that generates a vrev for vectors of floats.
Add test case. llvm-svn: 131582
Diffstat (limited to 'llvm/test/CodeGen/ARM/vrev.ll')
-rw-r--r--llvm/test/CodeGen/ARM/vrev.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/vrev.ll b/llvm/test/CodeGen/ARM/vrev.ll
index 0f0ea2b9322..34acd1678ae 100644
--- a/llvm/test/CodeGen/ARM/vrev.ll
+++ b/llvm/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
+}
+
OpenPOWER on IntegriCloud