8cf4960e174bf48858829fb0ed7ac707bdc3ded4
[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=mips64r2 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS64R2-NAN2008 %s
8 # MIPSEL-MIPS64R2-NAN2008: Flags [ (0x80001500)
9
10 # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS64 %s
11 # MIPSEL-MIPS64: Flags [ (0x60001100)
12
13 # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips64 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS64-NAN2008 %s
14 # MIPSEL-MIPS64-NAN2008: Flags [ (0x60001500)
15
16 # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r2 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS32R2 %s
17 # MIPSEL-MIPS32R2: Flags [ (0x70001000)
18
19 # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32r2 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS32R2-NAN2008 %s
20 # MIPSEL-MIPS32R2-NAN2008: Flags [ (0x70001400)
21
22 # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS32 %s
23 # MIPSEL-MIPS32: Flags [ (0x50001000)
24
25 # RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPSEL-MIPS32-NAN2008 %s
26 # MIPSEL-MIPS32-NAN2008: Flags [ (0x50001400)
27
28 # 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
29 # MIPS64EL-MIPS64R2-N32: Flags [ (0x80000020)
30
31 # RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 -mattr=-n64,n32,+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64R2-N32-NAN2008 %s
32 # MIPS64EL-MIPS64R2-N32-NAN2008: Flags [ (0x80000420)
33
34 # 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
35 # MIPS64EL-MIPS64-N32: Flags [ (0x60000020)
36
37 # RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64 -mattr=-n64,n32,+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64-N32-NAN2008 %s
38 # MIPS64EL-MIPS64-N32-NAN2008: Flags [ (0x60000420)
39
40 # 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
41 # MIPS64EL-MIPS64R2-N64: Flags [ (0x80000000)
42
43 # RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 -mattr=n64,+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64R2-N64-NAN2008 %s
44 # MIPS64EL-MIPS64R2-N64-NAN2008: Flags [ (0x80000400)
45
46 # 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
47 # MIPS64EL-MIPS64-N64: Flags [ (0x60000000)
48
49 # RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64 %s -mattr=n64,+nan2008 -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64-N64-NAN2008 %s
50 # MIPS64EL-MIPS64-N64-NAN2008: Flags [ (0x60000400)
51
52 # 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
53 # MIPS64EL-MIPS64R2-O32: Flags [ (0x80001100)
54
55 # RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 -mattr=-n64,o32,+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64R2-O32-NAN2008 %s
56 # MIPS64EL-MIPS64R2-O32-NAN2008: Flags [ (0x80001500)
57
58 # RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips4 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS4 %s
59 # MIPS4: Flags [ (0x30000000)
60
61  # RUN: llvm-mc -filetype=obj -triple mips64-unknown-linux -mcpu=mips4 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS4-NAN2008 %s
62 # MIPS4-NAN2008: Flags [ (0x30000400)
63
64 # 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
65 # MIPS64EL-MIPS64-O32: Flags [ (0x60001100)
66
67 # RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64 %s -mattr=-n64,o32,+nan2008 -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64-O32-NAN2008 %s
68 # MIPS64EL-MIPS64-O32-NAN2008: Flags [ (0x60001500)
69
70 # Default ABI for MIPS64 is N64 as opposed to GCC/GAS (N32)
71 # RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64R2 %s
72 # MIPS64EL-MIPS64R2: Flags [ (0x80000000)
73
74 # RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64r2 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64R2-NAN2008 %s
75 # MIPS64EL-MIPS64R2-NAN2008: Flags [ (0x80000400)
76
77 # Default ABI for MIPS64 is N64 as opposed to GCC/GAS (N32)
78 # RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64 %s
79 # MIPS64EL-MIPS64: Flags [ (0x60000000)
80
81 # RUN: llvm-mc -filetype=obj -triple mips64el-unknown-linux -mcpu=mips64 -mattr=+nan2008 %s -o -| llvm-readobj -h | FileCheck --check-prefix=MIPS64EL-MIPS64-NAN2008 %s
82 # MIPS64EL-MIPS64-NAN2008: Flags [ (0x60000400)