[ELF][MIPS] Add more tests for ELF flags calculation. NFC
llvm-svn: 278359
This commit is contained in:
parent
5c09e067f7
commit
2e88174f83
|
@ -14,11 +14,23 @@
|
|||
# RUN: ld.lld %t-r2.o -o %t-r2.exe
|
||||
# RUN: llvm-readobj -h %t-r2.exe | FileCheck -check-prefix=EXE-R2 %s
|
||||
|
||||
# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux \
|
||||
# RUN: -mcpu=mips32r2 %s -o %t-r2.o
|
||||
# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux \
|
||||
# RUN: -mcpu=mips32r5 %S/Inputs/mips-dynamic.s -o %t-r5.o
|
||||
# RUN: ld.lld %t-r2.o %t-r5.o -o %t-r5.exe
|
||||
# RUN: llvm-readobj -h %t-r5.exe | FileCheck -check-prefix=EXE-R5 %s
|
||||
|
||||
# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux \
|
||||
# RUN: -mcpu=mips32r6 %s -o %t-r6.o
|
||||
# RUN: ld.lld %t-r6.o -o %t-r6.exe
|
||||
# RUN: llvm-readobj -h %t-r6.exe | FileCheck -check-prefix=EXE-R6 %s
|
||||
|
||||
# RUN: llvm-mc -filetype=obj -triple=mips64-unknown-linux \
|
||||
# RUN: -mcpu=octeon %s -o %t.o
|
||||
# RUN: ld.lld %t.o -o %t.exe
|
||||
# RUN: llvm-readobj -h %t.exe | FileCheck -check-prefix=OCTEON %s
|
||||
|
||||
# REQUIRES: mips
|
||||
|
||||
.text
|
||||
|
@ -45,9 +57,22 @@ __start:
|
|||
# EXE-R2-NEXT: EF_MIPS_CPIC
|
||||
# EXE-R2-NEXT: ]
|
||||
|
||||
# EXE-R5: Flags [
|
||||
# EXE-R5-NEXT: EF_MIPS_ABI_O32
|
||||
# EXE-R5-NEXT: EF_MIPS_ARCH_32R2
|
||||
# EXE-R5-NEXT: EF_MIPS_CPIC
|
||||
# EXE-R5-NEXT: ]
|
||||
|
||||
# EXE-R6: Flags [
|
||||
# EXE-R6-NEXT: EF_MIPS_ABI_O32
|
||||
# EXE-R6-NEXT: EF_MIPS_ARCH_32R6
|
||||
# EXE-R6-NEXT: EF_MIPS_CPIC
|
||||
# EXE-R6-NEXT: EF_MIPS_NAN2008
|
||||
# EXE-R6-NEXT: ]
|
||||
|
||||
# OCTEON: Flags [
|
||||
# OCTEON-NEXT: EF_MIPS_ARCH_64R2
|
||||
# OCTEON-NEXT: EF_MIPS_CPIC
|
||||
# OCTEON-NEXT: EF_MIPS_MACH_OCTEON
|
||||
# OCTEON-NEXT: EF_MIPS_PIC
|
||||
# OCTEON-NEXT: ]
|
||||
|
|
Loading…
Reference in New Issue