summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/imm.ll
blob: e7bc0afff70ef8ce65aa211469b70e1f1192e796 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s

define i32 @test1(i32 %A) {
        %B = add i32 %A, -268435441             ; <i32> [#uses=1]
        ret i32 %B
}

define i32 @test2() {
        ret i32 65533
}

define i32 @test3(i32 %A) {
        %B = or i32 %A, 65533           ; <i32> [#uses=1]
        ret i32 %B
}

; CHECK-NOT: CPI