factor some logic out into a helper function, allow remat of loads from constant
[oota-llvm.git] / test / CodeGen / Alpha / zapnot4.ll
1 ; RUN: llvm-as < %s | llc -march=alpha | grep zapnot
2
3 define i64 @foo(i64 %y) {
4         %tmp = shl i64 %y, 3            ; <i64> [#uses=1]
5         %tmp2 = and i64 %tmp, 65535             ; <i64> [#uses=1]
6         ret i64 %tmp2
7 }