1 ; RUN: llc -mtriple=arm64-unknown-linux-gnu -relocation-model=pic < %s | FileCheck %s
3 @a = internal unnamed_addr global i32 0, align 4
4 @.str = private unnamed_addr constant [6 x i8] c"test\0A\00", align 1
8 ; CHECK: adrp x{{[0-9]+}}, a
9 ; CHECK-NEXT: ldr w{{[0-9]+}}, [x{{[0-9]}}, :lo12:a]
10 %res = load i32, ptr @a, align 4
14 define void @foo() nounwind {
16 ; CHECK: adrp x{{[0-9]}}, .L.str
17 ; CHECK-NEXT: add x{{[0-9]}}, x{{[0-9]}}, :lo12:.L.str
18 tail call void @bar(ptr @.str)
22 declare void @bar(ptr)