[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / MC / AArch64 / macho-addend-range.s
blobfdcb9123c768415492c2d3cd55335e50d1208d73
1 // RUN: not llvm-mc -triple arm64-apple-ios -filetype=obj -o /dev/null %s 2>&1 | FileCheck %s
2 .global _foo
3 adrp x0, (_foo + 1)@PAGE
4 adrp x0, (_foo - 1)@PAGE
5 adrp x0, (_foo + 0x7fffff)@PAGE
6 adrp x0, (_foo - 0x800000)@PAGE
8 // CHECK-NOT: error:
9 // CHECK: error: addend too big for relocation
10 // CHECK: adrp x0, (_foo + 0x800000)@PAGE
11 // CHECK: error: addend too big for relocation
12 // CHECK: adrp x0, (_foo - 0x800001)@PAGE
13 adrp x0, (_foo + 0x800000)@PAGE
14 adrp x0, (_foo - 0x800001)@PAGE