summaryrefslogtreecommitdiff
path: root/test/CodeGen/AArch64
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-04-30 11:19:15 +0000
committerTim Northover <tnorthover@apple.com>2014-04-30 11:19:15 +0000
commit2a2cce79be98f83cd29940471c9b58c5acb2cc58 (patch)
treef9da6da6d973c97a818bf777ecf90b63b493de1a /test/CodeGen/AArch64
parent491f476b8bf5d2b201733c27a079a9a7015ffc44 (diff)
downloadllvm-2a2cce79be98f83cd29940471c9b58c5acb2cc58.tar.gz
llvm-2a2cce79be98f83cd29940471c9b58c5acb2cc58.tar.bz2
llvm-2a2cce79be98f83cd29940471c9b58c5acb2cc58.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207633 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/AArch64')
-rw-r--r--test/CodeGen/AArch64/alloca.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/AArch64/alloca.ll b/test/CodeGen/AArch64/alloca.ll
index 5d7b6250d7..f73365b20c 100644
--- a/test/CodeGen/AArch64/alloca.ll
+++ b/test/CodeGen/AArch64/alloca.ll
@@ -136,7 +136,7 @@ define void @test_alloca_large_frame(i64 %n) {
; CHECK-ARM64: stp x20, x19, [sp, #-32]!
; CHECK-ARM64: stp x29, x30, [sp, #16]
; CHECK-ARM64: add x29, sp, #16
-; CHECK-ARM64: sub sp, sp, #7999488
+; CHECK-ARM64: sub sp, sp, #1953, lsl #12
; CHECK-ARM64: sub sp, sp, #512
%addr1 = alloca i8, i64 %n