26 lines · plain
1# REQUIRES: aarch64-registered-target2## Test that we can copy LC_LINKER_OPTIMIZATION_HINT.3 4# RUN: llvm-mc -filetype=obj -triple=arm64-apple-darwin %s -o %t.o5# RUN: llvm-objdump --macho --link-opt-hints - < %t.o > %tloh.txt6# RUN: FileCheck --input-file=%tloh.txt %s7 8# CHECK: Linker optimiztion hints (8 total bytes)9# CHECK-NEXT: identifier 7 AdrpAdd10 11# RUN: llvm-objcopy %t.o %t.copy.o12# RUN: llvm-objdump --macho --link-opt-hints - < %t.copy.o | diff %tloh.txt -13 14.text15.align 216_test:17L1:18 adrp x0, _foo@PAGE19L2:20 add x0, x0, _foo@PAGEOFF21.loh AdrpAdd L1, L222 23.data24_foo:25 .long 026