public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Tsukasa OI <research_trasio@irq.a4lg.com>
To: Tsukasa OI <research_trasio@irq.a4lg.com>,
	Nelson Chu <nelson@rivosinc.com>,
	Kito Cheng <kito.cheng@sifive.com>,
	Palmer Dabbelt <palmer@dabbelt.com>
Cc: binutils@sourceware.org
Subject: [PATCH v2 1/1] RISC-V: Test DWARF register numbers for "fp"
Date: Sat,  8 Oct 2022 04:29:53 +0000	[thread overview]
Message-ID: <8e13bce108ac10a0c1dd911e23ec572926f7ae44.1665203374.git.research_trasio@irq.a4lg.com> (raw)
In-Reply-To: <cover.1665203374.git.research_trasio@irq.a4lg.com>

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.
---
 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
-- 
2.34.1


  reply	other threads:[~2022-10-08  4:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-23  8:41 [PATCH 0/1] RISC-V psABI: Add testcase for DWARF register numbers Tsukasa OI
2022-09-23  8:41 ` [PATCH 1/1] RISC-V: " Tsukasa OI
2022-10-08  4:29 ` [PATCH v2 0/1] RISC-V psABI: Add testcase for DWARF register numbers (supplemental) Tsukasa OI
2022-10-08  4:29   ` Tsukasa OI [this message]
2022-10-14  1:33   ` Nelson Chu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8e13bce108ac10a0c1dd911e23ec572926f7ae44.1665203374.git.research_trasio@irq.a4lg.com \
    --to=research_trasio@irq.a4lg.com \
    --cc=binutils@sourceware.org \
    --cc=kito.cheng@sifive.com \
    --cc=nelson@rivosinc.com \
    --cc=palmer@dabbelt.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).