new testcase
authorChris Lattner <sabre@nondot.org>
Tue, 5 Dec 2006 01:29:01 +0000 (01:29 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 5 Dec 2006 01:29:01 +0000 (01:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32210 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/shl-trunc.ll [new file with mode: 0644]

diff --git a/test/Transforms/InstCombine/shl-trunc.ll b/test/Transforms/InstCombine/shl-trunc.ll
new file mode 100644 (file)
index 0000000..fae0ce3
--- /dev/null
@@ -0,0 +1,7 @@
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep shl
+
+bool %test(int %X, ubyte %A) {
+       %B = lshr int %X, ubyte %A
+       %D = trunc int %B to bool
+       ret bool %D
+}