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 -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 6 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 10 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 14 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 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_register: reg29 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: 40 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 51// DWARF64: DW_CFA_def_cfa_register: reg29 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: 57