diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-07-11 16:48:36 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-07-11 16:48:36 +0000 |
commit | 581da642418d96bffa88ce840b0d564a0b6820cc (patch) | |
tree | 93edd11bfe3435eae6fc81114ab5387b9687e01e /llvm/test/CodeGen/ARM/constants.ll | |
parent | 5fb3f665166dd1080be05022fce7288d6328d910 (diff) | |
download | bcm5719-llvm-581da642418d96bffa88ce840b0d564a0b6820cc.tar.gz bcm5719-llvm-581da642418d96bffa88ce840b0d564a0b6820cc.zip |
Simplify printing of ARM shifted immediates.
Print shifted immediate values directly rather than as a payload+shifter
value pair. This makes for more readable output assembly code, simplifies
the instruction printer, and is consistent with how Thumb immediates are
displayed.
llvm-svn: 134902
Diffstat (limited to 'llvm/test/CodeGen/ARM/constants.ll')
-rw-r--r-- | llvm/test/CodeGen/ARM/constants.ll | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/ARM/constants.ll b/llvm/test/CodeGen/ARM/constants.ll index 7b6c9d47860..f4c1b5acef9 100644 --- a/llvm/test/CodeGen/ARM/constants.ll +++ b/llvm/test/CodeGen/ARM/constants.ll @@ -14,31 +14,31 @@ define i32 @f2() { define i32 @f3() { ; CHECK: f3 -; CHECK: mov r0, #1, #24 +; CHECK: mov r0, #256 ret i32 256 } define i32 @f4() { ; CHECK: f4 -; CHECK: orr{{.*}}#1, #24 +; CHECK: orr{{.*}}#256 ret i32 257 } define i32 @f5() { ; CHECK: f5 -; CHECK: mov r0, #255, #2 +; CHECK: mov r0, #-1073741761 ret i32 -1073741761 } define i32 @f6() { ; CHECK: f6 -; CHECK: mov r0, #63, #28 +; CHECK: mov r0, #1008 ret i32 1008 } define void @f7(i32 %a) { ; CHECK: f7 -; CHECK: cmp r0, #1, #16 +; CHECK: cmp r0, #65536 %b = icmp ugt i32 %a, 65536 br i1 %b, label %r, label %r r: |