Revert r354244 "[DAGCombiner] Eliminate dead stores to stack."
[llvm-complete.git] / test / MC / Mips / eh-frame.s
blobe03027a20a4fddf3d44f61f8ae4a4eb847a4c9de
1 // Test the bits of .eh_frame on mips that are already implemented correctly.
3 // RUN: llvm-mc -filetype=obj %s -o %t.o -triple mips-unknown-linux-gnu
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
7 // RUN: llvm-mc -filetype=obj %s -o %t.o -triple mipsel-unknown-linux-gnu
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
11 // RUN: llvm-mc -filetype=obj %s -o %t.o -triple mips64-unknown-linux-gnu
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
15 // RUN: llvm-mc -filetype=obj %s -o %t.o -triple mips64el-unknown-linux-gnu
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
19 func:
20 .cfi_startproc
21 .cfi_endproc
23 // REL32: R_MIPS_32
24 // REL64: R_MIPS_64/R_MIPS_NONE/R_MIPS_NONE
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
34 // DWARF32: DW_CFA_def_cfa: reg29 +0
35 // FIXME: The instructions are different from the ones produces by gas.
37 // DWARF32: 00000014 00000010 00000018 FDE cie=00000018 pc=00000000...00000000
38 // DWARF32: DW_CFA_nop:
39 // DWARF32: DW_CFA_nop:
40 // DWARF32: DW_CFA_nop:
42 // DWARF64: 00000000 00000010 ffffffff CIE
43 // DWARF64: Version: 1
44 // DWARF64: Augmentation: "zR"
45 // DWARF64: Code alignment factor: 1
46 // DWARF64: Data alignment factor: -8
47 // ^^ GAS uses -4. Should be ok as long as
48 // all offsets we need are a multiple of 8.
49 // DWARF64: Return address column: 31
50 // DWARF64: Augmentation data: 0C
51 // ^^ fde pointer encoding: DW_EH_PE_sdata8
52 // DWARF64: DW_CFA_def_cfa: reg29 +0
53 // FIXME: The instructions are different from the ones produces by gas.
55 // DWARF64: 00000014 00000018 00000018 FDE cie=00000018 pc=00000000...00000000
56 // DWARF64: DW_CFA_nop:
57 // DWARF64: DW_CFA_nop:
58 // DWARF64: DW_CFA_nop: