public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb] RISC-V: Test DWARF register number for "fp"
@ 2022-10-14  5:23 Tsukasa OI
  0 siblings, 0 replies; only message in thread
From: Tsukasa OI @ 2022-10-14  5:23 UTC (permalink / raw)
  To: bfd-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=58eb738fed378626e4b0b0cef26fdc5013750d04

commit 58eb738fed378626e4b0b0cef26fdc5013750d04
Author: Tsukasa OI <research_trasio@irq.a4lg.com>
Date:   Fri Aug 12 06:20:03 2022 +0900

    RISC-V: Test DWARF register number for "fp"
    
    This commit adds "fp" (x8 or s0) to dw-regnums.{s,d}.
    
    gas/ChangeLog:
    
            * testsuite/gas/riscv/dw-regnums.s: Add "fp".
            * testsuite/gas/riscv/dw-regnums.d: Likewise.

Diff:
---
 gas/testsuite/gas/riscv/dw-regnums.d | 1 +
 gas/testsuite/gas/riscv/dw-regnums.s | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/gas/testsuite/gas/riscv/dw-regnums.d b/gas/testsuite/gas/riscv/dw-regnums.d
index 5ec61b98697..57f8a01ea01 100644
--- a/gas/testsuite/gas/riscv/dw-regnums.d
+++ b/gas/testsuite/gas/riscv/dw-regnums.d
@@ -49,6 +49,7 @@ Contents of the .* section:
   DW_CFA_offset_extended_sf: r29 \(t4\) at cfa\+120
   DW_CFA_offset_extended_sf: r30 \(t5\) at cfa\+124
   DW_CFA_offset_extended_sf: r31 \(t6\) at cfa\+128
+  DW_CFA_offset_extended_sf: r8 \(s0\) at cfa\+36
   DW_CFA_offset_extended_sf: r0 \(zero\) at cfa\+4
   DW_CFA_offset_extended_sf: r1 \(ra\) at cfa\+8
   DW_CFA_offset_extended_sf: r2 \(sp\) at cfa\+12
diff --git a/gas/testsuite/gas/riscv/dw-regnums.s b/gas/testsuite/gas/riscv/dw-regnums.s
index bbe1b13d894..ed1d3ebdb3c 100644
--- a/gas/testsuite/gas/riscv/dw-regnums.s
+++ b/gas/testsuite/gas/riscv/dw-regnums.s
@@ -44,6 +44,9 @@ _start:
 	.cfi_offset t5,  124
 	.cfi_offset t6,  128
 
+	# GPR (ABI alias)
+	.cfi_offset fp,   36
+
 	# GPRs (Numeric)
 	.cfi_offset x0,    4
 	.cfi_offset x1,    8

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-14  5:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-14  5:23 [binutils-gdb] RISC-V: Test DWARF register number for "fp" Tsukasa OI

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).