Home | History | Annotate | Download | only in AArch64
      1 ; RUN: llc < %s -mtriple=aarch64-none-linux-gnu -O0 | FileCheck --check-prefix=NO-MERGE %s
      2 ; RUN: llc < %s -mtriple=aarch64-none-linux-gnu -O0 -global-merge-on-external=true | FileCheck --check-prefix=NO-MERGE %s
      3 
      4 ; RUN: llc < %s -mtriple=aarch64-apple-ios -O0 | FileCheck %s --check-prefix=CHECK-APPLE-IOS-NO-MERGE
      5 ; RUN: llc < %s -mtriple=aarch64-apple-ios -O0 -global-merge-on-external=true | FileCheck %s --check-prefix=CHECK-APPLE-IOS-NO-MERGE
      6 
      7 ; FIXME: add O1/O2 test for aarch64-none-linux-gnu and aarch64-apple-ios
      8 
      9 @m = internal global i32 0, align 4
     10 @n = internal global i32 0, align 4
     11 
     12 define void @f1(i32 %a1, i32 %a2) {
     13 ; CHECK-LABEL: f1:
     14 ; CHECK: adrp x{{[0-9]+}}, _MergedGlobals
     15 ; CHECK-NOT: adrp
     16 
     17 ; CHECK-APPLE-IOS-LABEL: f1:
     18 ; CHECK-APPLE-IOS: adrp x{{[0-9]+}}, __MergedGlobals
     19 ; CHECK-APPLE-IOS-NOT: adrp
     20   store i32 %a1, i32* @m, align 4
     21   store i32 %a2, i32* @n, align 4
     22   ret void
     23 }
     24 
     25 ; CHECK:        .local _MergedGlobals
     26 ; CHECK:        .comm  _MergedGlobals,8,8
     27 ; NO-MERGE-NOT: .local _MergedGlobals
     28 
     29 ; CHECK-APPLE-IOS: .zerofill __DATA,__bss,__MergedGlobals,8,3
     30 ; CHECK-APPLE-IOS-NO-MERGE-NOT: .zerofill __DATA,__bss,__MergedGlobals,8,3
     31