1// Test the bits of .eh_frame on mips that are already implemented correctly. 2 3// RUN: llvm-mc -filetype=obj %s -o %t.o -arch=mips 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 6 7// RUN: llvm-mc -filetype=obj %s -o %t.o -arch=mipsel 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 10 11// RUN: llvm-mc -filetype=obj %s -o %t.o -arch=mips64 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 14 15// RUN: llvm-mc -filetype=obj %s -o %t.o -arch=mips64el 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 18 19func: 20 .cfi_startproc 21 .cfi_endproc 22 23// REL32: R_MIPS_32 24// REL64: R_MIPS_64/R_MIPS_NONE/R_MIPS_NONE 25 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. 36// 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: 41 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. 54// 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: 59