mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
992aad1a5d
This generalizes an existing fix from ELF to MachO and COFF. Test that an ADRP to a local symbol whose offset is known at assembly time still produces relocations, both for MachO and COFF. Test that an ADRP without a @page modifier on MachO fails (previously it didn't). Differential Revision: https://reviews.llvm.org/D35544 llvm-svn: 308518
7 lines
163 B
ArmAsm
7 lines
163 B
ArmAsm
; RUN: llvm-mc < %s -triple arm64-apple-darwin -filetype=obj -o - | llvm-readobj -r - | FileCheck %s
|
|
|
|
adrp x3, Lbar@page
|
|
; CHECK: ARM64_RELOC_PAGE21
|
|
Lbar:
|
|
ret
|