llvm.org GIT mirror llvm / release_90 test / CodeGen / AArch64 / arm64-weak-reference.ll
release_90

Tree @release_90 (Download .tar.gz)

arm64-weak-reference.ll @release_90raw · history · blame

; 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, i32* @x, align 4
  ret i32 %val
}