2014-04-04 00:01:44 +08:00
|
|
|
; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s
|
2007-01-19 17:20:23 +08:00
|
|
|
|
2008-02-18 04:02:20 +08:00
|
|
|
define i32 @test1(i32 %A) {
|
|
|
|
%B = add i32 %A, -268435441 ; <i32> [#uses=1]
|
|
|
|
ret i32 %B
|
2007-01-19 17:20:23 +08:00
|
|
|
}
|
|
|
|
|
2008-02-18 04:02:20 +08:00
|
|
|
define i32 @test2() {
|
|
|
|
ret i32 65533
|
2007-01-19 17:20:23 +08:00
|
|
|
}
|
|
|
|
|
2008-02-18 04:02:20 +08:00
|
|
|
define i32 @test3(i32 %A) {
|
|
|
|
%B = or i32 %A, 65533 ; <i32> [#uses=1]
|
|
|
|
ret i32 %B
|
2007-01-19 17:20:23 +08:00
|
|
|
}
|
|
|
|
|
2014-04-04 00:01:44 +08:00
|
|
|
; CHECK-NOT: CPI
|
|
|
|
|
|
|
|
|