| Reid Spencer | 4dcf8bf | 2007-04-16 15:31:49 +0000 | [diff] [blame] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep {ori\\|lis} | 
| Chris Lattner | 2188b43 | 2005-08-30 18:44:09 +0000 | [diff] [blame] | 2 | |
| 3 | int %test(int %X) { | ||||
| 4 | %Y = and int %X, 32769 ; andi. r3, r3, 32769 | ||||
| 5 | ret int %Y | ||||
| 6 | } | ||||
| 7 | |||||
| 8 | int %test2(int %X) { | ||||
| 9 | %Y = and int %X, -2147418112 ; andis. r3, r3, 32769 | ||||
| 10 | ret int %Y | ||||
| 11 | } | ||||
| 12 | |||||