From 90e5f0400c7d1a57a2b5cb2c9f7fedbe573f5d24 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Fri, 20 Oct 2006 18:06:37 +0000 Subject: [PATCH] Test case for http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20061016/038780.html llvm-svn: 31068 --- test/Regression/Transforms/InstCombine/2006-10-20-mask.ll | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/Regression/Transforms/InstCombine/2006-10-20-mask.ll diff --git a/test/Regression/Transforms/InstCombine/2006-10-20-mask.ll b/test/Regression/Transforms/InstCombine/2006-10-20-mask.ll new file mode 100644 index 00000000000..2596d526329 --- /dev/null +++ b/test/Regression/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 +}