diff options
| author | Tim Northover <tnorthover@apple.com> | 2014-04-30 11:19:15 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2014-04-30 11:19:15 +0000 |
| commit | cfd6e66544a39a7a8a5c6b7c82b71b438232b67a (patch) | |
| tree | e72a5865b516d95c76f4c0cdac8d52e70149af4a /llvm/test/MC/Disassembler/ARM64 | |
| parent | 4da7dd837db6b504564076907fd750b476f78dd5 (diff) | |
| download | bcm5719-llvm-cfd6e66544a39a7a8a5c6b7c82b71b438232b67a.tar.gz bcm5719-llvm-cfd6e66544a39a7a8a5c6b7c82b71b438232b67a.zip | |
ARM64: print canonical syntax for add/sub (imm) instructions.
Since these instructions only accept a 12-bit immediate, possibly shifted left
by 12, the canonical syntax used by the architecture reference manual is "#N {,
lsl #12 }". We should accept an immediate that has already been shifted, (e.g.
Also, print a comment giving the full addend since it can be helpful.
llvm-svn: 207633
Diffstat (limited to 'llvm/test/MC/Disassembler/ARM64')
| -rw-r--r-- | llvm/test/MC/Disassembler/ARM64/arithmetic.txt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/test/MC/Disassembler/ARM64/arithmetic.txt b/llvm/test/MC/Disassembler/ARM64/arithmetic.txt index d68f43bd331..5e98fca9592 100644 --- a/llvm/test/MC/Disassembler/ARM64/arithmetic.txt +++ b/llvm/test/MC/Disassembler/ARM64/arithmetic.txt @@ -40,8 +40,8 @@ 0x83 0x00 0x40 0x91 0xff 0x83 0x00 0x91 -# CHECK: add w3, w4, #4194304 -# CHECK: add x3, x4, #4194304 +# CHECK: add w3, w4, #1024, lsl #12 +# CHECK: add x3, x4, #1024, lsl #12 # CHECK: add x3, x4, #0, lsl #12 # CHECK: add sp, sp, #32 @@ -52,9 +52,9 @@ 0xff 0x83 0x00 0xb1 # CHECK: adds w3, w4, #1024 -# CHECK: adds w3, w4, #4194304 +# CHECK: adds w3, w4, #1024, lsl #12 # CHECK: adds x3, x4, #1024 -# CHECK: adds x3, x4, #4194304 +# CHECK: adds x3, x4, #1024, lsl #12 # CHECK: cmn sp, #32 0x83 0x00 0x10 0x51 @@ -64,9 +64,9 @@ 0xff 0x83 0x00 0xd1 # CHECK: sub w3, w4, #1024 -# CHECK: sub w3, w4, #4194304 +# CHECK: sub w3, w4, #1024, lsl #12 # CHECK: sub x3, x4, #1024 -# CHECK: sub x3, x4, #4194304 +# CHECK: sub x3, x4, #1024, lsl #12 # CHECK: sub sp, sp, #32 0x83 0x00 0x10 0x71 @@ -76,9 +76,9 @@ 0xff 0x83 0x00 0xf1 # CHECK: subs w3, w4, #1024 -# CHECK: subs w3, w4, #4194304 +# CHECK: subs w3, w4, #1024, lsl #12 # CHECK: subs x3, x4, #1024 -# CHECK: subs x3, x4, #4194304 +# CHECK: subs x3, x4, #1024, lsl #12 # CHECK: cmp sp, #32 #==---------------------------------------------------------------------------== |

