File tree Expand file tree Collapse file tree 3 files changed +86
-64
lines changed Expand file tree Collapse file tree 3 files changed +86
-64
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # # Check how obj2yaml dumps SHT_MIPS_ABIFLAGS sections.
2
+
3
+ # RUN: yaml2obj %s -o %t
4
+ # RUN: obj2yaml %t | FileCheck %s
5
+
6
+ # CHECK: Sections:
7
+ # CHECK-NEXT: - Name: .MIPS.abiflags
8
+ # CHECK-NEXT: Type: SHT_MIPS_ABIFLAGS
9
+ # CHECK-NEXT: AddressAlign: 0x0000000000000008
10
+ # CHECK-NEXT: EntSize: 0x0000000000000018
11
+ # CHECK-NEXT: ISA: MIPS64
12
+ # CHECK-NEXT: ISARevision: 0x05
13
+ # CHECK-NEXT: ISAExtension: EXT_OCTEON3
14
+ # CHECK-NEXT: ASEs: [ DSP, DSPR2, VIRT ]
15
+ # CHECK-NEXT: FpABI: FP_DOUBLE
16
+ # CHECK-NEXT: GPRSize: REG_64
17
+ # CHECK-NEXT: CPR1Size: REG_64
18
+ # CHECK-NEXT: Flags1: [ ODDSPREG ]
19
+ # CHECK-NEXT: ...
20
+
21
+ --- !ELF
22
+ FileHeader :
23
+ Class : ELFCLASS64
24
+ Data : ELFDATA2MSB
25
+ Type : ET_REL
26
+ Machine : EM_MIPS
27
+ Sections :
28
+ - Name : .MIPS.abiflags
29
+ Type : SHT_MIPS_ABIFLAGS
30
+ AddressAlign : 8
31
+ Version : 0
32
+ ISA : MIPS64
33
+ ISARevision : 5
34
+ ISAExtension : EXT_OCTEON3
35
+ ASEs : [ DSP, DSPR2, VIRT ]
36
+ FpABI : FP_DOUBLE
37
+ GPRSize : REG_64
38
+ CPR1Size : REG_64
39
+ CPR2Size : REG_NONE
40
+ Flags1 : [ ODDSPREG ]
41
+ Flags2 : 0x0
Original file line number Diff line number Diff line change
1
+ # # Test how yaml2obj creates SHT_MIPS_ABIFLAGS sections.
2
+
3
+ # RUN: yaml2obj %s -o %t
4
+ # RUN: llvm-readobj -A %t | FileCheck %s
5
+
6
+ # CHECK: MIPS ABI Flags {
7
+ # CHECK-NEXT: Version: 0
8
+ # CHECK-NEXT: ISA: MIPS64r5
9
+ # CHECK-NEXT: ISA Extension: Cavium Networks Octeon3 (0x13)
10
+ # CHECK-NEXT: ASEs [ (0x103)
11
+ # CHECK-NEXT: DSP (0x1)
12
+ # CHECK-NEXT: DSPR2 (0x2)
13
+ # CHECK-NEXT: VZ (0x100)
14
+ # CHECK-NEXT: ]
15
+ # CHECK-NEXT: FP ABI: Hard float (double precision) (0x1)
16
+ # CHECK-NEXT: GPR size: 64
17
+ # CHECK-NEXT: CPR1 size: 64
18
+ # CHECK-NEXT: CPR2 size: 0
19
+ # CHECK-NEXT: Flags 1 [ (0x1)
20
+ # CHECK-NEXT: ODDSPREG (0x1)
21
+ # CHECK-NEXT: ]
22
+ # CHECK-NEXT: Flags 2: 0x0
23
+ # CHECK-NEXT: }
24
+
25
+ --- !ELF
26
+ FileHeader :
27
+ Class : ELFCLASS64
28
+ Data : ELFDATA2MSB
29
+ Type : ET_REL
30
+ Machine : EM_MIPS
31
+ Sections :
32
+ - Name : .MIPS.abiflags
33
+ Type : SHT_MIPS_ABIFLAGS
34
+ AddressAlign : 8
35
+ Version : 0
36
+ ISA : MIPS64
37
+ ISARevision : 5
38
+ ISAExtension : EXT_OCTEON3
39
+ ASEs : [ DSP, DSPR2, VIRT ]
40
+ FpABI : FP_DOUBLE
41
+ GPRSize : REG_64
42
+ CPR1Size : REG_64
43
+ CPR2Size : REG_NONE
44
+ Flags1 : [ ODDSPREG ]
45
+ Flags2 : 0x0
You can’t perform that action at this time.
0 commit comments