From: Claudiu Zissulescu <claziss@gmail.com>
To: binutils@sourceware.org
Cc: fbedard@synopsys.com, Claudiu Zissulescu <claziss@synopsys.com>
Subject: [committed] arc: Update ARC's CFI tests.
Date: Thu, 13 Apr 2023 10:31:44 +0300 [thread overview]
Message-ID: <20230413073144.1973667-1-claziss@gmail.com> (raw)
From: Claudiu Zissulescu <claziss@synopsys.com>
The double store/loads instructions (e.g. STD/LDD) are not baseline
ARC ISA. The same holds for some short instructions. Update the
tests to use base ARC ISA.
Signed-off-by: Claudiu Zissulescu <claziss@synopsys.com>
---
gas/ChangeLog | 5 +++++
gas/testsuite/gas/cfi/cfi-arc-1.d | 12 ++++++------
gas/testsuite/gas/cfi/cfi-arc-1.s | 10 +++++-----
3 files changed, 16 insertions(+), 11 deletions(-)
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 55fdf3b47f5..e7db2d83197 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2023-04-13 Claudiu Zissulescu <claziss@synopsys.com>
+
+ * testsuite/gas/cfi/cfi-arc-1.s: Use baseline instructions.
+ * testsuite/gas/cfi/cfi-arc-1.d: Update matching patterns.
+
2023-04-13 Claudiu Zissulescu <claziss@synopsys.com>
* testsuite/gas/arc/dsp.s: Remove unimplemented dsp instructions.
diff --git a/gas/testsuite/gas/cfi/cfi-arc-1.d b/gas/testsuite/gas/cfi/cfi-arc-1.d
index 73caeb2a078..9bc522a4626 100644
--- a/gas/testsuite/gas/cfi/cfi-arc-1.d
+++ b/gas/testsuite/gas/cfi/cfi-arc-1.d
@@ -3,7 +3,7 @@
Contents of the .eh_frame section:
-00000000 00000010 00000000 CIE
+00000000 0+10 00000000 CIE
Version: 1
Augmentation: "zR"
Code alignment factor: 1
@@ -13,17 +13,17 @@ Contents of the .eh_frame section:
DW_CFA_def_cfa: r28 ofs 0
-00000014 00000020 00000018 FDE cie=00000000 pc=00000000..00000010
- DW_CFA_advance_loc: 4 to 00000004
+00000014 0+20 00000018 FDE cie=00000000 pc=0+..[0-9a-f]+
+ DW_CFA_advance_loc: 4 to 0+4
DW_CFA_def_cfa_offset: 48
DW_CFA_offset: r13 at cfa-48
- DW_CFA_advance_loc: 4 to 00000008
+ DW_CFA_advance_loc: 8 to 0+c
DW_CFA_def_cfa_offset: 52
DW_CFA_offset: r14 at cfa-44
DW_CFA_offset: r15 at cfa-40
- DW_CFA_advance_loc: 4 to 0000000c
+ DW_CFA_advance_loc: 4 to 0+10
DW_CFA_offset: r27 at cfa-52
- DW_CFA_advance_loc: 2 to 0000000e
+ DW_CFA_advance_loc: 4 to 0+14
DW_CFA_def_cfa_register: r27
DW_CFA_nop
diff --git a/gas/testsuite/gas/cfi/cfi-arc-1.s b/gas/testsuite/gas/cfi/cfi-arc-1.s
index 5d4f99d8c67..9f338e74b4d 100644
--- a/gas/testsuite/gas/cfi/cfi-arc-1.s
+++ b/gas/testsuite/gas/cfi/cfi-arc-1.s
@@ -1,20 +1,20 @@
.file "foo.c"
- .cpu HS
.section .text
.align 4
.cfi_startproc
foo:
- st.a r13,[sp,-48]
+ st.a r13,[sp,-48]
.cfi_def_cfa_offset 48
.cfi_offset r13, -48
.LCFI0:
- std r14,[sp,4]
+ st r14,[sp,4]
+ st r15,[sp,8]
.cfi_adjust_cfa_offset 4
.cfi_offset r14, -44
.cfi_rel_offset r15, 12
- st.a fp,[sp,-4]
+ st.a fp,[sp,-4]
.cfi_rel_offset fp, 0
- mov_s fp,sp
+ mov fp,sp
.cfi_def_cfa_register fp
j_s [blink]
.cfi_endproc
--
2.30.2
reply other threads:[~2023-04-13 7:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20230413073144.1973667-1-claziss@gmail.com \
--to=claziss@gmail.com \
--cc=binutils@sourceware.org \
--cc=claziss@synopsys.com \
--cc=fbedard@synopsys.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).