brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · e7ddf94 Raw
29 lines · plain
1# REQUIRES: x86, aarch642# RUN: rm -rf %t && mkdir -p %t3# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t/x86-64-test.o4# RUN: llvm-mc -filetype=obj -triple=arm64-apple-darwin %s -o %t/arm64-test.o5# RUN: llvm-mc -filetype=obj -triple=arm64_32-apple-watchos %s -o %t/arm64-32-test.o6# RUN: llvm-mc -filetype=obj -triple=arm64_32-apple-watchos %s -o %t/arm64-32-test.o7 8# RUN: %lld -lSystem -arch x86_64 -o %t/x86-64-executable %t/x86-64-test.o9# RUN: %lld -lSystem -arch arm64 -o %t/arm64-executable %t/arm64-test.o10# RUN: %lld-watchos -lSystem -o %t/arm64-32-executable %t/arm64-32-test.o11 12# RUN: %lld -arch x86_64 -dylib -o %t/x86-64-dylib %t/x86-64-test.o13 14## NOTE: recent versions of ld64 don't emit LIB64 for x86-64-executable, maybe we should follow suit15# RUN: llvm-objdump --macho --private-header %t/x86-64-executable | FileCheck %s --check-prefix=EXEC -DCPU=X86_64 -DSUBTYPE=ALL -DCAPS=LIB6416# RUN: llvm-objdump --macho --private-header %t/arm64-executable | FileCheck %s --check-prefix=EXEC -DCPU=ARM64 -DSUBTYPE=ALL -DCAPS=0x0017# RUN: llvm-objdump --macho --private-header %t/arm64-32-executable | FileCheck %s --check-prefix=EXEC -DCPU=ARM64_32 -DSUBTYPE=V8 -DCAPS=0x0018 19# RUN: llvm-objdump --macho --private-header %t/x86-64-dylib | FileCheck %s --check-prefix=DYLIB -DCPU=X86_64 -DSUBTYPE=ALL -DCAPS=0x0020 21# EXEC:      magic               cputype  cpusubtype   caps     filetype {{.*}} flags22# EXEC-NEXT: MH_MAGIC{{(_64)?}}  [[CPU]]  [[SUBTYPE]]  [[CAPS]] EXECUTE  {{.*}} NOUNDEFS DYLDLINK TWOLEVEL PIE{{$}}23 24# DYLIB:      magic                  cputype  cpusubtype   caps      filetype {{.*}} flags25# DYLIB-NEXT: MH_MAGIC_64{{(_64)?}}  [[CPU]]  [[SUBTYPE]]  [[CAPS]]  DYLIB    {{.*}} NOUNDEFS DYLDLINK TWOLEVEL NO_REEXPORTED_DYLIBS{{$}}26 27.globl _main28_main:29