Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / Transforms / InstCombine / and-compare.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep and | wc -l | grep 1
2
3 ; Should be optimized to one and.
4 bool %test1(uint %a, uint %b) {
5         %tmp1 = and uint %a, 65280
6         %tmp3 = and uint %b, 65280
7         %tmp = setne uint %tmp1, %tmp3
8         ret bool %tmp
9 }
10