[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/small-arguments.ll
Chris Lattner
lattner at cs.uiuc.edu
Wed Aug 31 11:20:03 PDT 2005
Changes in directory llvm/test/Regression/CodeGen/PowerPC:
small-arguments.ll added (r1.1)
---
Log message:
Add a testcase for nate's patch
---
Diffs of the changes: (+12 -0)
small-arguments.ll | 12 ++++++++++++
1 files changed, 12 insertions(+)
Index: llvm/test/Regression/CodeGen/PowerPC/small-arguments.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/small-arguments.ll:1.1
*** /dev/null Wed Aug 31 13:20:00 2005
--- llvm/test/Regression/CodeGen/PowerPC/small-arguments.ll Wed Aug 31 13:19:50 2005
***************
*** 0 ****
--- 1,12 ----
+ ; RUN: llvm-as < %s | llc -march=ppc32 | not grep 'extsh\|rlwinm r3, r3'
+
+ int %test1(short %X) {
+ %Y = cast short %X to int ;; dead
+ ret int %Y
+ }
+
+ int %test2(ushort %X) {
+ %Y = cast ushort %X to int
+ %Z = and int %Y, 65535 ;; dead
+ ret int %Z
+ }
More information about the llvm-commits
mailing list