[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/shl_sext.ll

Nate Begeman natebegeman at mac.com
Fri Feb 17 13:32:57 PST 2006



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

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

Yet another test


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

 shl_sext.ll |    9 +++++++++
 1 files changed, 9 insertions(+)


Index: llvm/test/Regression/CodeGen/PowerPC/shl_sext.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/shl_sext.ll:1.1
*** /dev/null	Fri Feb 17 15:32:56 2006
--- llvm/test/Regression/CodeGen/PowerPC/shl_sext.ll	Fri Feb 17 15:32:46 2006
***************
*** 0 ****
--- 1,9 ----
+ ; This test should not contain a sign extend
+ ; RUN: llvm-as < %s | llc -march=ppc32 | not grep extsb 
+ 
+ int %test(uint %mode.0.i.0) {
+         %tmp.79 = cast uint %mode.0.i.0 to sbyte        ; <sbyte> [#uses=1]
+         %tmp.80 = cast sbyte %tmp.79 to int             ; <int> [#uses=1]
+         %tmp.81 = shl int %tmp.80, ubyte 24             ; <int> [#uses=1]
+         ret int %tmp.81
+ }






More information about the llvm-commits mailing list