New testcase, should turn into a ushr
[oota-llvm.git] / test / CodeGen / PowerPC / div-2.ll
1 ; RUN: llvm-as < %s | llc -march=ppc32 | not grep srawi &&
2 ; RUN: llvm-as < %s | llc -march=ppc32 | grep blr
3
4 int %test(int %X) {
5         %Y = and int %X, 15
6         %Z = div int %Y, 4
7         ret int %Z
8 }