summaryrefslogtreecommitdiff
path: root/test/CodeGen/AArch64/arm64-weak-reference.ll
blob: b2135e0960cb343bfa757f2ace083f994c04fdc2 (plain)
1
2
3
4
5
6
7
8
9
10
; RUN: llc < %s -mtriple=arm64-apple-ios | FileCheck %s

@x = extern_weak global i32

define i32 @fn() nounwind ssp {
; CHECK-LABEL: fn:
; CHECK: .weak_reference
  %val = load i32* @x, align 4
  ret i32 %val
}