Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / mips-elf-abi.s
blob86c02f34f6a50a599599acbca8b8870acbf5dcda
1 # REQUIRES: mips
2 # Check EI_ABIVERSION flags
4 # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o
5 # RUN: ld.lld -shared -o %t.so %t.o
6 # RUN: llvm-readobj -h %t.so | FileCheck -check-prefix=DSO %s
7 # RUN: ld.lld -o %t.exe %t.o
8 # RUN: llvm-readobj -h %t.exe | FileCheck -check-prefix=EXE %s
9 # RUN: ld.lld -pie -o %t.pie %t.o
10 # RUN: llvm-readobj -h %t.pie | FileCheck -check-prefix=PIE %s
11 # RUN: ld.lld -r -o %t.rel %t.o
12 # RUN: llvm-readobj -h %t.rel | FileCheck -check-prefix=REL %s
14 # DSO: ABIVersion: 0
15 # EXE: ABIVersion: 1
16 # PIE: ABIVersion: 0
17 # REL: ABIVersion: 0
19 .global __start
20 .text
21 __start:
22 nop