2 # RUN: llvm-mc -filetype=obj -triple=arm64-apple-darwin %s -o %t.o
3 # RUN: not %lld -arch arm64 %t.o -o %t 2>&1 | FileCheck %s --implicit-check-not=_byte \
4 # RUN: --implicit-check-not=_correct
6 # CHECK-DAG: error: {{.*}}:(symbol _main+0x4): 16-bit LDR/STR to 0x[[#%X,]] (_half) is not 2-byte aligned
7 # CHECK-DAG: error: {{.*}}:(symbol _main+0xc): 32-bit LDR/STR to 0x[[#%X,]] (_word) is not 4-byte aligned
8 # CHECK-DAG: error: {{.*}}:(symbol _main+0x14): 64-bit LDR/STR to 0x[[#%X,]] (_double) is not 8-byte aligned
9 # CHECK-DAG: error: {{.*}}:(symbol _main+0x1c): 128-bit LDR/STR to 0x[[#%X,]] (_quad) is not 16-byte aligned
14 ldrh w0
, [x0
, _half@PAGEOFF
]
17 ldr w1
, [x1
, _word@PAGEOFF
]
20 ldr x2
, [x2
, _double@PAGEOFF
]
23 ldr q0
, [x3
, _quad@PAGEOFF
]
26 ldrb w4
, [x4
, _byte@PAGEOFF
]
28 adrp x5
, _correct@PAGE
29 ldr x5
, [x5
, _correct@PAGEOFF
]