0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
1 // Test the bits of .eh_frame on mips that are already implemented correctly.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
2
|
147
|
3 // RUN: llvm-mc -filetype=obj %s -o %t.o -triple mips-unknown-linux-gnu
|
121
|
4 // RUN: llvm-objdump -r -section=.rel.eh_frame %t.o | FileCheck --check-prefix=REL32 %s
|
|
5 // RUN: llvm-dwarfdump -eh-frame %t.o | FileCheck --check-prefix=DWARF32 %s
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
6
|
147
|
7 // RUN: llvm-mc -filetype=obj %s -o %t.o -triple mipsel-unknown-linux-gnu
|
121
|
8 // RUN: llvm-objdump -r -section=.rel.eh_frame %t.o | FileCheck --check-prefix=REL32 %s
|
|
9 // RUN: llvm-dwarfdump -eh-frame %t.o | FileCheck --check-prefix=DWARF32 %s
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
10
|
147
|
11 // RUN: llvm-mc -filetype=obj %s -o %t.o -triple mips64-unknown-linux-gnu
|
121
|
12 // RUN: llvm-objdump -r -section=.rela.eh_frame %t.o | FileCheck --check-prefix=REL64 %s
|
|
13 // RUN: llvm-dwarfdump -eh-frame %t.o | FileCheck --check-prefix=DWARF64 %s
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
14
|
147
|
15 // RUN: llvm-mc -filetype=obj %s -o %t.o -triple mips64el-unknown-linux-gnu
|
121
|
16 // RUN: llvm-objdump -r -section=.rela.eh_frame %t.o | FileCheck --check-prefix=REL64 %s
|
|
17 // RUN: llvm-dwarfdump -eh-frame %t.o | FileCheck --check-prefix=DWARF64 %s
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
18
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
19 func:
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
20 .cfi_startproc
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
21 .cfi_endproc
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
22
|
121
|
23 // REL32: R_MIPS_32
|
|
24 // REL64: R_MIPS_64/R_MIPS_NONE/R_MIPS_NONE
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
25
|
121
|
26 // DWARF32: 00000000 00000010 ffffffff CIE
|
|
27 // DWARF32: Version: 1
|
|
28 // DWARF32: Augmentation: "zR"
|
|
29 // DWARF32: Code alignment factor: 1
|
|
30 // DWARF32: Data alignment factor: -4
|
|
31 // DWARF32: Return address column: 31
|
|
32 // DWARF32: Augmentation data: 0B
|
|
33 // ^^ fde pointer encoding: DW_EH_PE_sdata4
|
147
|
34 // DWARF32: DW_CFA_def_cfa_register: reg29
|
121
|
35 //
|
|
36 // DWARF32: 00000014 00000010 00000018 FDE cie=00000018 pc=00000000...00000000
|
|
37 // DWARF32: DW_CFA_nop:
|
|
38 // DWARF32: DW_CFA_nop:
|
|
39 // DWARF32: DW_CFA_nop:
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
40
|
121
|
41 // DWARF64: 00000000 00000010 ffffffff CIE
|
|
42 // DWARF64: Version: 1
|
|
43 // DWARF64: Augmentation: "zR"
|
|
44 // DWARF64: Code alignment factor: 1
|
|
45 // DWARF64: Data alignment factor: -8
|
|
46 // ^^ GAS uses -4. Should be ok as long as
|
|
47 // all offsets we need are a multiple of 8.
|
|
48 // DWARF64: Return address column: 31
|
|
49 // DWARF64: Augmentation data: 0C
|
|
50 // ^^ fde pointer encoding: DW_EH_PE_sdata8
|
147
|
51 // DWARF64: DW_CFA_def_cfa_register: reg29
|
121
|
52 //
|
|
53 // DWARF64: 00000014 00000018 00000018 FDE cie=00000018 pc=00000000...00000000
|
|
54 // DWARF64: DW_CFA_nop:
|
|
55 // DWARF64: DW_CFA_nop:
|
|
56 // DWARF64: DW_CFA_nop:
|