[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / MC / Mips / elf_basic.s
blob4739247f67fac61ff83beec136e5d5e03b08320a
1 // 32 bit big endian
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
5 // 64 bit big endian
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
16 // CHECK-BE32: }
17 // CHECK-BE32: }
19 // CHECK-LE32: ElfHeader {
20 // CHECK-LE32: Ident {
21 // CHECK-LE32: Class: 32-bit
22 // CHECK-LE32: DataEncoding: LittleEndian
23 // CHECK-LE32: }
24 // CHECK-LE32: }
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
32 // CHECK-BE64: }
33 // CHECK-BE64: }
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
40 // CHECK-LE64: }
41 // CHECK-LE64: }