1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
2 ; RUN: llc -mtriple=aarch64 -O0 -global-isel %s -o - 2>&1 | FileCheck %s
4 target triple = "arm64"
6 @p = external global { {}, { ptr } }
10 ; CHECK: // %bb.0: // %bb
11 ; CHECK-NEXT: adrp x8, :got:p
12 ; CHECK-NEXT: ldr x8, [x8, :got_lo12:p]
13 ; CHECK-NEXT: ldr x8, [x8]
14 ; CHECK-NEXT: mov x9, xzr
15 ; CHECK-NEXT: str x8, [x9]
18 %i1 = load ptr, ptr @p, align 8
19 store ptr %i1, ptr null, align 8