[llvm-commits] CVS: llvm/test/CodeGen/ARM/illegal-vector-bitcast.ll

Dan Gohman djg at cray.com
Thu Jun 28 17:09:30 PDT 2007



Changes in directory llvm/test/CodeGen/ARM:

illegal-vector-bitcast.ll added (r1.1)
---
Log message:

Fix an assertion failure in legalizing bitcast operators on targets where
vectors are split down to single elements as part of legalization.


---
Diffs of the changes:  (+13 -0)

 illegal-vector-bitcast.ll |   13 +++++++++++++
 1 files changed, 13 insertions(+)


Index: llvm/test/CodeGen/ARM/illegal-vector-bitcast.ll
diff -c /dev/null llvm/test/CodeGen/ARM/illegal-vector-bitcast.ll:1.1
*** /dev/null	Thu Jun 28 19:09:18 2007
--- llvm/test/CodeGen/ARM/illegal-vector-bitcast.ll	Thu Jun 28 19:09:08 2007
***************
*** 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
+ }






More information about the llvm-commits mailing list