[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/vec_narrow.ll

Chris Lattner lattner at cs.uiuc.edu
Sat Mar 4 16:21:40 PST 2006



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
+ }
+ 






More information about the llvm-commits mailing list