1# REQUIRES: aarch64, x86 2 3# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.x86_64.o 4# RUN: llvm-mc -filetype=obj -triple=arm64-apple-darwin %s -o %t.arm64.o 5# RUN: llvm-mc -filetype=obj -triple=arm64e-apple-darwin %s -o %t.arm64e.o 6# RUN: llvm-mc -filetype=obj -triple=arm64_32-apple-watchos %s -o %t.arm64_32.o 7 8# RUN: %lld -arch x86_64 -lSystem -no_pie -o %t %t.x86_64.o 9# RUN: not %lld -arch arm64 -lSystem -no_pie -o %t %t.arm64.o 2>&1 | FileCheck %s 10# RUN: not %lld -arch arm64e -lSystem -no_pie -o %t %t.arm64e.o 2>&1 | FileCheck %s 11# RUN: not %lld-watchos -arch arm64_32 -lSystem -no_pie -o %t %t.arm64_32.o 2>&1 | FileCheck %s 12 13# CHECK: error: -no_pie ignored for arm64 14 15.globl _main 16_main: 17 ret 18