summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/global-merge-external.ll
diff options
context:
space:
mode:
authorJohn Brawn <john.brawn@arm.com>2015-08-12 15:05:39 +0000
committerJohn Brawn <john.brawn@arm.com>2015-08-12 15:05:39 +0000
commit75fc09ddbad9e302b1b12fae894dde8de0809f53 (patch)
treeb9ef85bd664ab3f45b9021f9c9aacb20f5b5d194 /llvm/test/CodeGen/ARM/global-merge-external.ll
parent3349f89974279c21c7230384ee8bea7aea99f738 (diff)
downloadbcm5719-llvm-75fc09ddbad9e302b1b12fae894dde8de0809f53.tar.gz
bcm5719-llvm-75fc09ddbad9e302b1b12fae894dde8de0809f53.zip
Redo "Make global aliases have symbol size equal to their type"
r242520 was reverted in r244313 as the expected behaviour of the alias attribute in C is that the alias has the same size as the aliasee. However we can re-introduce adding the size on the alias when the aliasee does not, from a source code or object perspective, exist as a discrete entity. This happens when the aliasee is not a symbol, or when that symbol is private. Differential Revision: http://reviews.llvm.org/D11943 llvm-svn: 244752
Diffstat (limited to 'llvm/test/CodeGen/ARM/global-merge-external.ll')
-rw-r--r--llvm/test/CodeGen/ARM/global-merge-external.ll3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/global-merge-external.ll b/llvm/test/CodeGen/ARM/global-merge-external.ll
index f379e654f04..a9e0d199705 100644
--- a/llvm/test/CodeGen/ARM/global-merge-external.ll
+++ b/llvm/test/CodeGen/ARM/global-merge-external.ll
@@ -37,7 +37,10 @@ define void @g1(i32 %a1, i32 %a2) {
;CHECK-MERGE: .globl x
;CHECK-MERGE: x = .L_MergedGlobals
+;CHECK-MERGE: .size x, 4
;CHECK-MERGE: .globl y
;CHECK-MERGE: y = .L_MergedGlobals+4
+;CHECK-MERGE: .size y, 4
;CHECK-MERGE: .globl z
;CHECK-MERGE: z = .L_MergedGlobals+8
+;CHECK-MERGE: .size z, 4
OpenPOWER on IntegriCloud