1# REQUIRES: aarch64-registered-target 2## Test that we can copy LC_LINKER_OPTIMIZATION_HINT. 3 4# RUN: llvm-mc -filetype=obj -triple=arm64-apple-darwin %s -o %t.o 5# RUN: llvm-objdump --macho --link-opt-hints - < %t.o > %tloh.txt 6# RUN: FileCheck --input-file=%tloh.txt %s 7 8# CHECK: Linker optimiztion hints (8 total bytes) 9# CHECK-NEXT: identifier 7 AdrpAdd 10 11# RUN: llvm-objcopy %t.o %t.copy.o 12# RUN: llvm-objdump --macho --link-opt-hints - < %t.copy.o | diff %tloh.txt - 13 14.text 15.align 2 16_test: 17L1: 18 adrp x0, _foo@PAGE 19L2: 20 add x0, x0, _foo@PAGEOFF 21.loh AdrpAdd L1, L2 22 23.data 24_foo: 25 .long 0 26