aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2006-10-20 18:06:37 +0000
committerDevang Patel <dpatel@apple.com>2006-10-20 18:06:37 +0000
commit9eb43f206484104356d4271bea452e6be3d59b0e (patch)
tree5fa873d7b452393a0389ccb5effbcf48b82c6403
parent34ab4d45d2aa11bee666836e3571be2627959a42 (diff)
Test case for
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20061016/038780.html git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31068 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Transforms/InstCombine/2006-10-20-mask.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2006-10-20-mask.ll b/test/Transforms/InstCombine/2006-10-20-mask.ll
new file mode 100644
index 0000000000..2596d52632
--- /dev/null
+++ b/test/Transforms/InstCombine/2006-10-20-mask.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-as %s -o - | opt -instcombine | llvm-dis | grep 'and'
+ulong %foo(ulong %tmp, ulong %tmp2) {
+ %tmp = cast ulong %tmp to uint
+ %tmp2 = cast ulong %tmp2 to uint
+ %tmp3 = and uint %tmp, %tmp2
+ %tmp4 = cast uint %tmp3 to ulong
+ ret ulong %tmp4
+}