ARM test cases contributed by Apple.
[oota-llvm.git] / test / CodeGen / ARM / imm.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
2 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | not grep CPI
3
4 int %test1(int %A) {
5   %B = add int %A, -268435441  ; 0xF000000F
6   ret int %B
7 }
8
9 int %test2() {
10   ret int 65533
11 }
12
13 int %test3(int %A) {
14   %B = or int %A, 65533
15   ret int %B
16 }
17
18