Changes in directory llvm/test/Regression/Transforms/InstCombine:

vec_narrow.ll added (r1.1)
---
Log message:

new testcase for vector narrowing.


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

 vec_narrow.ll |   11 +++++++++++
 1 files changed, 11 insertions(+)


Index: llvm/test/Regression/Transforms/InstCombine/vec_narrow.ll
diff -c /dev/null llvm/test/Regression/Transforms/InstCombine/vec_narrow.ll:1.1
*** /dev/null   Sat Mar  4 18:21:38 2006
--- llvm/test/Regression/Transforms/InstCombine/vec_narrow.ll   Sat Mar  4 
18:21:28 2006
***************
*** 0 ****
--- 1,11 ----
+ ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep 'add float'
+ 
+ %V = type <4 x float>
+ 
+ float %test(%V %A, %V %B, float %f) {
+         %C = insertelement %V %A, float %f, uint 0
+         %D = add %V %C, %B
+         %E = extractelement %V %D, uint 0
+         ret float %E
+ }
+ 



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to