3d5d08303ada46ad53c756d7e359975d5629c62f
[oota-llvm.git] / test / CodeGen / PowerPC / and-imm.ll
1 ; RUN: llvm-as < %s | llc -march=ppc32 | not grep 'ori\|lis'
2 ; XFAIL: *
3
4 int %test(int %X) {
5         %Y = and int %X, 32769   ; andi. r3, r3, 32769
6         ret int %Y
7 }
8
9 int %test2(int %X) {
10         %Y = and int %X, -2147418112 ; andis. r3, r3, 32769
11         ret int %Y
12 }
13