new testcase
[oota-llvm.git] / test / Transforms / InstCombine / cast-cast-to-and.ll
1 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep ubyte
2
3 int %test1(uint %X) {
4         %Y = cast uint %X to ubyte ;; Turn into an AND
5         %Z = cast ubyte %Y to int
6         ret int %Z
7 }
8