diff options
author | Tim Northover <Tim.Northover@arm.com> | 2013-02-15 09:33:43 +0000 |
---|---|---|
committer | Tim Northover <Tim.Northover@arm.com> | 2013-02-15 09:33:43 +0000 |
commit | 1e8839302b70d77de63844332bdee9ce7d06f2c9 (patch) | |
tree | 13c018c5dfc7095a77e603f5a5de9db46e28204a /test/CodeGen/AArch64/extern-weak.ll | |
parent | 148ac534fc5592ed7031efde9a577890f078068b (diff) |
AArch64: remove ConstantIsland pass & put literals in separate section.
This implements the review suggestion to simplify the AArch64 backend. If we
later discover that we *really* need the extra complexity of the
ConstantIslands pass for performance reasons it can be resurrected.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175258 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/AArch64/extern-weak.ll')
-rw-r--r-- | test/CodeGen/AArch64/extern-weak.ll | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/CodeGen/AArch64/extern-weak.ll b/test/CodeGen/AArch64/extern-weak.ll index 54baab2200..298977682b 100644 --- a/test/CodeGen/AArch64/extern-weak.ll +++ b/test/CodeGen/AArch64/extern-weak.ll @@ -6,8 +6,9 @@ define i32()* @foo() { ; The usual ADRP/ADD pair can't be used for a weak reference because it must ; evaluate to 0 if the symbol is undefined. We use a litpool entry. ret i32()* @var -; CHECK: ldr x0, .LCPI0_0 - ; CHECK: .LCPI0_0: ; CHECK-NEXT: .xword var + +; CHECK: ldr x0, [{{x[0-9]+}}, #:lo12:.LCPI0_0] + } |