2 // RUN
: llvm-mc
-filetype
=obj
-triple mips-unknown-linux
%s
-o
- | llvm-readobj
-h | FileCheck
-check-prefix
=CHECK-BE32
%s
3 // 32 bit little endian
4 // RUN
: llvm-mc
-filetype
=obj
-triple mipsel-unknown-linux
%s
-o
- | llvm-readobj
-h | FileCheck
-check-prefix
=CHECK-LE32
%s
6 // RUN
: llvm-mc
-filetype
=obj
-arch
=mips64
-triple mips64-unknown-linux
%s
-o
- | llvm-readobj
-h | FileCheck
-check-prefix
=CHECK-BE64
%s
7 // 64 bit little endian
8 // RUN
: llvm-mc
-filetype
=obj
-arch
=mips64el
-triple mips64el-unknown-linux
%s
-o
- | llvm-readobj
-h | FileCheck
-check-prefix
=CHECK-LE64
%s
10 // Check that we produce
32 bit with each endian.
12 // CHECK-BE32
: ElfHeader
{
13 // CHECK-BE32
: Ident
{
14 // CHECK-BE32
: Class
: 32-bit
15 // CHECK-BE32
: DataEncoding
: BigEndian
19 // CHECK-LE32
: ElfHeader
{
20 // CHECK-LE32
: Ident
{
21 // CHECK-LE32
: Class
: 32-bit
22 // CHECK-LE32
: DataEncoding
: LittleEndian
26 // Check that we produce
64 bit with each endian.
28 // CHECK-BE64
: ElfHeader
{
29 // CHECK-BE64
: Ident
{
30 // CHECK-BE64
: Class
: 64-bit
31 // CHECK-BE64
: DataEncoding
: BigEndian
35 // CHECK-LE64
: ElfHeader
{
36 // CHECK-LE64
: Ident
{
37 // CHECK-LE64
: Class
: 64-bit
38 // CHECK-LE64
: DataEncoding
: LittleEndian
39 // CHECK-LE64
: OS
/ABI
: SystemV