Model stacksave and stackrestore as both writing memory, since we
[oota-llvm.git] / test / Transforms / InstCombine / cast-cast-to-and.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
2 ; RUN:   not grep ubyte
3
4 int %test1(uint %X) {
5         %Y = cast uint %X to ubyte ;; Turn into an AND
6         %Z = cast ubyte %Y to int
7         ret int %Z
8 }
9