[GlobalMerge] Only emit aliases for internal linkage variables for non-Mach-O
[oota-llvm.git] / test / CodeGen / AArch64 / global-merge-1.ll
index 304d0a78c2c98d959a33119afa5b113f97570245..b93f41c07df9eeff5a4e7828e47fff1130a7b2e2 100644 (file)
@@ -23,5 +23,9 @@ define void @f1(i32 %a1, i32 %a2) {
 ;CHECK:        .type   .L_MergedGlobals,@object  // @_MergedGlobals
 ;CHECK:        .local  .L_MergedGlobals
 ;CHECK:        .comm   .L_MergedGlobals,8,8
+;CHECK: m = .L_MergedGlobals
+;CHECK: n = .L_MergedGlobals+4
 
 ;CHECK-APPLE-IOS: .zerofill __DATA,__bss,l__MergedGlobals,8,3 ; @_MergedGlobals
+;CHECK-APPLE-IOS-NOT: _m = l__MergedGlobals
+;CHECK-APPLE-IOS-NOT: _n = l__MergedGlobals+4