1 RUN: llvm-readobj -A %p/Inputs/abiflags.obj.elf-mipsel | \
2 RUN: FileCheck -check-prefix=EL64 %s
3 RUN: llvm-readobj -A %p/Inputs/abiflags.obj.elf-mips | \
4 RUN: FileCheck -check-prefix=BE32 %s
6 RUN: llvm-readelf -A %p/Inputs/abiflags.obj.elf-mipsel | \
7 RUN: FileCheck -check-prefix=GNU-EL64 %s
8 RUN: llvm-readelf -A %p/Inputs/abiflags.obj.elf-mips | \
9 RUN: FileCheck -check-prefix=GNU-BE32 %s
11 EL64: MIPS ABI Flags {
13 EL64-NEXT: ISA: MIPS64r5
14 EL64-NEXT: ISA Extension: Cavium Networks Octeon3 (0x13)
15 EL64-NEXT: ASEs [ (0x103)
17 EL64-NEXT: DSPR2 (0x2)
20 EL64-NEXT: FP ABI: Hard float (double precision) (0x1)
21 EL64-NEXT: GPR size: 64
22 EL64-NEXT: CPR1 size: 64
23 EL64-NEXT: CPR2 size: 0
24 EL64-NEXT: Flags 1 [ (0x1)
25 EL64-NEXT: ODDSPREG (0x1)
27 EL64-NEXT: Flags 2: 0x0
30 BE32: MIPS ABI Flags {
32 BE32-NEXT: ISA: MIPS32r2
33 BE32-NEXT: ISA Extension: None (0x0)
34 BE32-NEXT: ASEs [ (0x803)
36 BE32-NEXT: DSPR2 (0x2)
37 BE32-NEXT: microMIPS (0x800)
39 BE32-NEXT: FP ABI: Soft float (0x3)
40 BE32-NEXT: GPR size: 32
41 BE32-NEXT: CPR1 size: 0
42 BE32-NEXT: CPR2 size: 0
43 BE32-NEXT: Flags 1 [ (0x1)
44 BE32-NEXT: ODDSPREG (0x1)
46 BE32-NEXT: Flags 2: 0x0
49 GNU-EL64: MIPS ABI Flags Version: 0
51 GNU-EL64-NEXT: ISA: MIPS64r5
52 GNU-EL64-NEXT: GPR size: 64
53 GNU-EL64-NEXT: CPR1 size: 64
54 GNU-EL64-NEXT: CPR2 size: 0
55 GNU-EL64-NEXT: FP ABI: Hard float (double precision)
56 GNU-EL64-NEXT: ISA Extension: Cavium Networks Octeon3
57 GNU-EL64-NEXT: ASEs: DSP, DSPR2, VZ
58 GNU-EL64-NEXT: FLAGS 1: 00000001
59 GNU-EL64-NEXT: FLAGS 2: 00000000
61 GNU-BE32: MIPS ABI Flags Version: 0
63 GNU-BE32-NEXT: ISA: MIPS32r2
64 GNU-BE32-NEXT: GPR size: 32
65 GNU-BE32-NEXT: CPR1 size: 0
66 GNU-BE32-NEXT: CPR2 size: 0
67 GNU-BE32-NEXT: FP ABI: Soft float
68 GNU-BE32-NEXT: ISA Extension: None
69 GNU-BE32-NEXT: ASEs: DSP, DSPR2, microMIPS
70 GNU-BE32-NEXT: FLAGS 1: 00000001
71 GNU-BE32-NEXT: FLAGS 2: 00000000