aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/illegal-vector-bitcast.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-06-29 00:09:08 +0000
committerDan Gohman <gohman@apple.com>2007-06-29 00:09:08 +0000
commit10a7aa6dea8d862feda05098d82a7630c80c30d8 (patch)
treee221c898b8328abea35da9c1f119127b4067121b /test/CodeGen/ARM/illegal-vector-bitcast.ll
parent0db5862cb88523b8ea2daf7e93650ec04bf6c1d5 (diff)
downloadexternal_llvm-10a7aa6dea8d862feda05098d82a7630c80c30d8.zip
external_llvm-10a7aa6dea8d862feda05098d82a7630c80c30d8.tar.gz
external_llvm-10a7aa6dea8d862feda05098d82a7630c80c30d8.tar.bz2
Fix an assertion failure in legalizing bitcast operators on targets where
vectors are split down to single elements as part of legalization. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37785 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/illegal-vector-bitcast.ll')
-rw-r--r--test/CodeGen/ARM/illegal-vector-bitcast.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/illegal-vector-bitcast.ll b/test/CodeGen/ARM/illegal-vector-bitcast.ll
new file mode 100644
index 0000000..6785cfd
--- /dev/null
+++ b/test/CodeGen/ARM/illegal-vector-bitcast.ll
@@ -0,0 +1,13 @@
+; RUN: llvm-as < %s | llc -march=arm
+
+define void @foo(<8 x float>* %f, <8 x float>* %g, <4 x i64>* %y)
+{
+ %h = load <8 x float>* %f
+ %i = mul <8 x float> %h, <float 1.1, float 3.3, float 4.4, float 5.4, float 0.5, float 0.6, float 0.7, float 0.8>
+ %m = bitcast <8 x float> %i to <4 x i64>
+ %z = load <4 x i64>* %y
+ %n = mul <4 x i64> %z, %m
+ %p = bitcast <4 x i64> %n to <8 x float>
+ store <8 x float> %p, <8 x float>* %g
+ ret void
+}