[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/2007-01-04-ArgExtension.ll

Chris Lattner sabre at nondot.org
Thu Jan 4 14:22:23 PST 2007



Changes in directory llvm/test/Regression/CodeGen/PowerPC:

2007-01-04-ArgExtension.ll added (r1.1)
---
Log message:

new testcase


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

 2007-01-04-ArgExtension.ll |   10 ++++++++++
 1 files changed, 10 insertions(+)


Index: llvm/test/Regression/CodeGen/PowerPC/2007-01-04-ArgExtension.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/2007-01-04-ArgExtension.ll:1.1
*** /dev/null	Thu Jan  4 16:22:17 2007
--- llvm/test/Regression/CodeGen/PowerPC/2007-01-04-ArgExtension.ll	Thu Jan  4 16:22:07 2007
***************
*** 0 ****
--- 1,10 ----
+ ; RUN: llvm-as < %s | llc | grep extsb &&
+ ; RUN: llvm-as < %s | llc | grep extsh
+ 
+ define i32 %p1(i8 %c, i16 %s) {
+ entry:
+         %tmp = sext i8 %c to i32                ; <i32> [#uses=1]
+         %tmp1 = sext i16 %s to i32              ; <i32> [#uses=1]
+         %tmp2 = add i32 %tmp1, %tmp             ; <i32> [#uses=1]
+         ret i32 %tmp2
+ }






More information about the llvm-commits mailing list