3 ! REQUIRES: aarch64-registered-target, x86-registered-target
9 ! RUN: %flang_fc1 -emit-obj -triple aarch64-unknown-linux-gnu %s -o %t.o
10 ! RUN: llvm-objdump --triple aarch64-unknown-linux-gnu --disassemble-all %t.o | FileCheck %s --check-prefix=CORRECT_TRIPLE
12 ! RUN: %flang -c --target=aarch64-unknown-linux-gnu %s -o %t.o
13 ! RUN: llvm-objdump --triple aarch64-unknown-linux-gnu --disassemble-all %t.o | FileCheck %s --check-prefix=CORRECT_TRIPLE
15 ! RUN: %flang -c --target=aarch64-unknown-linux-gnu %s -o %t.o
16 ! RUN: llvm-objdump --triple x86_64-unknown-linux-gnu --disassemble-all %t.o | FileCheck %s --check-prefix=INCORRECT_TRIPLE
21 ! CORRECT_TRIPLE-LABEL: <_QQmain>:
22 ! CORRECT_TRIPLE-NEXT: ret
24 ! When incorrect triple is used to disassemble, there won't be a ret instruction at all.
25 ! INCORRECT_TRIPLE-LABEL: <_QQmain>:
26 ! INCORRECT_TRIPLE-NOT: ret