Implement the missing bits corresponding to .mips_hack_elf_flags.
[oota-llvm.git] / test / MC / Mips / elf_eflags.s
1 # These *MUST* match the output of gas compiled with the same triple and
2 # corresponding options (-mcpu=mips32 -> -mips32 for example).
3
4 # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64r2 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS64R2 %s
5 # MIPSEL-MIPS64R2: Flags [ (0x80001100)
6
7 # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS64 %s
8 # MIPSEL-MIPS64: Flags [ (0x60001100)
9
10 # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r2 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS32R2 %s
11 # MIPSEL-MIPS32R2: Flags [ (0x70001000)
12
13 # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS32 %s
14 # MIPSEL-MIPS32: Flags [ (0x50001000)
15
16 # RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64R2 %s
17 # MIPS64EL-MIPS64R2: Flags [ (0x80000020)
18
19 # RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64 %s
20 # MIPS64EL-MIPS64: Flags [ (0x60000020)