diff options
-rw-r--r-- | test/Transforms/InstCombine/2006-10-20-mask.ll | 8 |
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 +} |