]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
This commit was manufactured by cvs2svn to create branch 'binutils-
authornobody <>
Tue, 15 Mar 2005 05:28:18 +0000 (05:28 +0000)
committernobody <>
Tue, 15 Mar 2005 05:28:18 +0000 (05:28 +0000)
2_16-branch'.

Cherrypick from master 2005-03-15 05:28:17 UTC Eric Christopher <echristo@gmail.com> '==> ChangeLog <==':
    gas/testsuite/gas/cfi/cfi-mips-1.d
    gas/testsuite/gas/cfi/cfi-mips-1.s

gas/testsuite/gas/cfi/cfi-mips-1.d [new file with mode: 0644]
gas/testsuite/gas/cfi/cfi-mips-1.s [new file with mode: 0644]

diff --git a/gas/testsuite/gas/cfi/cfi-mips-1.d b/gas/testsuite/gas/cfi/cfi-mips-1.d
new file mode 100644 (file)
index 0000000..7a8d8e8
--- /dev/null
@@ -0,0 +1,27 @@
+#readelf: -wf
+#name: CFI on mips, 1
+The section .eh_frame contains:
+
+00000000 00000014 00000000 CIE
+  Version:               1
+  Augmentation:          "zR"
+  Code alignment factor: 1
+  Data alignment factor: -4
+  Return address column: 31
+  Augmentation data:     0b
+
+  DW_CFA_def_cfa_reg: r29
+  DW_CFA_def_cfa: r29 ofs 0
+  DW_CFA_nop
+  DW_CFA_nop
+
+00000018 0000001c 0000001c FDE cie=00000000 pc=00000000..0000002c
+  DW_CFA_advance_loc: 4 to 00000004
+  DW_CFA_def_cfa_offset: 8
+  DW_CFA_advance_loc: 4 to 00000008
+  DW_CFA_offset: r30 at cfa-8
+  DW_CFA_advance_loc: 4 to 0000000c
+  DW_CFA_def_cfa: r30 ofs 8
+  DW_CFA_advance_loc: 24 to 00000024
+  DW_CFA_def_cfa: r29 ofs 0
+  DW_CFA_nop
diff --git a/gas/testsuite/gas/cfi/cfi-mips-1.s b/gas/testsuite/gas/cfi/cfi-mips-1.s
new file mode 100644 (file)
index 0000000..cf7d5e2
--- /dev/null
@@ -0,0 +1,39 @@
+       .file   1 "foo.c"
+       .section .mdebug.abi64
+       .previous
+       .text
+       .align  2
+       .globl  foo
+       .ent    foo
+       .cfi_startproc
+foo:
+       .frame  $fp,8,$31               # vars= 8, regs= 1/0, args= 0, gp= 0
+       .mask   0x40000000,-8
+       .fmask  0x00000000,0
+       .set    noreorder
+       .set    nomacro
+
+       .cfi_def_cfa $sp, 0
+       addiu   $sp,$sp,-8
+       .cfi_adjust_cfa_offset 8
+       sw      $fp,0($sp)
+       .cfi_offset $30, -8
+       move    $fp,$sp
+       .cfi_def_cfa $fp, 8
+
+       nop
+       nop
+       nop
+       
+       move    $sp,$fp
+       lw      $fp,0($sp)
+       addiu   $sp,$sp,8
+       .cfi_def_cfa $sp, 0
+       j       $31
+       nop
+       .set    macro
+       .set    reorder
+       .end    foo
+       .cfi_endproc
+       .size   foo, .-foo
+       .ident  "GCC: (GNU) 4.0.0 20041226 (experimental)"