ARM64: initial backend import
[oota-llvm.git] / test / CodeGen / ARM64 / weak-reference.ll
1 ; RUN: llc < %s -mtriple=arm64-apple-ios | FileCheck %s
2
3 @x = extern_weak global i32
4
5 define i32 @fn() nounwind ssp {
6 ; CHECK-LABEL: fn:
7 ; CHECK: .weak_reference
8   %val = load i32* @x, align 4
9   ret i32 %val
10 }