Multiply can be evaluated in a different type, so long as the target type has
[oota-llvm.git] / test / Transforms / InstCombine / zeroext-and-reduce.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
2 ; RUN:   grep {and i32 %Y, 8}
3
4 int %test1(ubyte %X) {
5         %Y = cast ubyte %X to int
6         %Z = and int %Y, 65544     ;; Prune this to and Y, 8
7         ret int %Z
8 }
9