Yet another test
authorNate Begeman <natebegeman@mac.com>
Fri, 17 Feb 2006 21:32:46 +0000 (21:32 +0000)
committerNate Begeman <natebegeman@mac.com>
Fri, 17 Feb 2006 21:32:46 +0000 (21:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26266 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/PowerPC/shl_sext.ll [new file with mode: 0644]

diff --git a/test/CodeGen/PowerPC/shl_sext.ll b/test/CodeGen/PowerPC/shl_sext.ll
new file mode 100644 (file)
index 0000000..95ec2d2
--- /dev/null
@@ -0,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
+}