diff options
author | Ed Schouten <ed@FreeBSD.org> | 2009-06-02 17:52:33 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2009-06-02 17:52:33 +0000 |
commit | 009b1c42aa6266385f2c37e227516b24077e6dd7 (patch) | |
tree | 64ba909838c23261cace781ece27d106134ea451 /test/CodeGen/ARM/imm.ll |
Diffstat (limited to 'test/CodeGen/ARM/imm.ll')
-rw-r--r-- | test/CodeGen/ARM/imm.ll | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/imm.ll b/test/CodeGen/ARM/imm.ll new file mode 100644 index 0000000000000..998adbae5c94f --- /dev/null +++ b/test/CodeGen/ARM/imm.ll @@ -0,0 +1,16 @@ +; RUN: llvm-as < %s | llc -march=arm | not grep CPI + +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 +} + |