[mips] Add initial (experimental) MIPS-IV support.
[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 -mattr=-n64,n32 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64R2-N32 %s
17 # MIPS64EL-MIPS64R2-N32: Flags [ (0x80000020)
18
19 # RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64 -mattr=-n64,n32 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64-N32 %s
20 # MIPS64EL-MIPS64-N32: Flags [ (0x60000020)
21
22 # RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 -mattr=n64 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64R2-N64 %s
23 # MIPS64EL-MIPS64R2-N64: Flags [ (0x80000000)
24
25 # RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64 %s -mattr=n64 -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64-N64 %s
26 # MIPS64EL-MIPS64-N64: Flags [ (0x60000000)
27
28 # RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 -mattr=-n64,o32 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64R2-O32 %s
29 # MIPS64EL-MIPS64R2-O32: Flags [ (0x80001100)
30
31 # RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips4 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS4 %s
32 # MIPS4: Flags [ (0x30000000)
33
34 # RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64 %s -mattr=-n64,o32 -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64-O32 %s
35 # MIPS64EL-MIPS64-O32: Flags [ (0x60001100)
36         
37 # Default ABI for MIPS64 is N64 as opposed to GCC/GAS (N32)
38 # RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64R2 %s
39 # MIPS64EL-MIPS64R2: Flags [ (0x80000000)
40
41 # Default ABI for MIPS64 is N64 as opposed to GCC/GAS (N32)
42 # RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64 %s
43 # MIPS64EL-MIPS64: Flags [ (0x60000000)