blob: 6f25f9dcb323d622b34e7dcd26dbbbd6d8aabb1b [file] [log] [blame]
Dan Gohmanc8054d92009-09-09 00:09:15 +00001; RUN: llc < %s -march=arm | not grep CPI
Evan Chenga5007fa2007-01-19 09:20:23 +00002
Tanya Lattnerf697c032008-02-17 20:02:20 +00003define i32 @test1(i32 %A) {
4 %B = add i32 %A, -268435441 ; <i32> [#uses=1]
5 ret i32 %B
Evan Chenga5007fa2007-01-19 09:20:23 +00006}
7
Tanya Lattnerf697c032008-02-17 20:02:20 +00008define i32 @test2() {
9 ret i32 65533
Evan Chenga5007fa2007-01-19 09:20:23 +000010}
11
Tanya Lattnerf697c032008-02-17 20:02:20 +000012define i32 @test3(i32 %A) {
13 %B = or i32 %A, 65533 ; <i32> [#uses=1]
14 ret i32 %B
Evan Chenga5007fa2007-01-19 09:20:23 +000015}
16