Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Alexandre Oliva <aoliva@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: h8300 sim fixes
Date: Mon, 21 Jun 2004 11:08:00 -0000	[thread overview]
Message-ID: <or8yehb22q.fsf@livre.redhat.lsd.ic.unicamp.br> (raw)

[-- Attachment #1: Type: text/plain, Size: 403 bytes --]

This patch:

include/opcodes/ChangeLog:
2004-01-09  Anil Paranjpe  <anilp1@KPITCummins.com>

	* h8300.h (BITOP): Dissallow operations on @aa:16 and @aa:32
	except for the H8S.

introduced apparent regressions in the h8300 sim testsuite.  This
patch corrects them, such that we don't attempt to test features that
will fail to assemble or to run on the processor variants we're
testing.  Ok to install?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: h8300-sim-testsuite-h8300s.patch --]
[-- Type: text/x-patch, Size: 2996 bytes --]

Index: sim/testsuite/sim/h8300/ChangeLog
from  Alexandre Oliva  <aoliva@redhat.com>

	2004-06-17  Alexandre Oliva  <aoliva@redhat.com>
	* band.s, biand.s: imm3_abs16 is not available on h8300h.
	* bset.s: Likewise.  Ditto for rn_abs32.

Index: sim/testsuite/sim/h8300/band.s
===================================================================
RCS file: /cvs/uberbaum/./sim/testsuite/sim/h8300/band.s,v
retrieving revision 1.1
diff -u -p -r1.1 band.s
--- sim/testsuite/sim/h8300/band.s 19 Jun 2003 02:40:12 -0000 1.1
+++ sim/testsuite/sim/h8300/band.s 21 Jun 2004 10:42:48 -0000
@@ -104,7 +104,7 @@ band_imm3_abs8:
 
 	test_grs_a5a5		; general registers should not be changed.
 
-.if (sim_cpu)			; non-zero means not h8300
+.if (sim_cpu > h8300h)
 band_imm3_abs16:
 	set_grs_a5a5
 	set_ccr_zero
@@ -314,7 +314,7 @@ bld_imm3_abs8:
 
 	test_grs_a5a5		; general registers should not be changed.
 
-.if (sim_cpu)			; non-zero means not h8300
+.if (sim_cpu > h8300h)
 bld_imm3_abs16:
 	set_grs_a5a5
 	set_ccr_zero
@@ -491,7 +491,7 @@ btst_imm3_abs8:
 
 	test_grs_a5a5		; general registers should not be changed.
 
-.if (sim_cpu)			; non-zero means not h8300
+.if (sim_cpu > h8300h)
 btst_imm3_abs16:
 	set_grs_a5a5
 	set_ccr_zero
Index: sim/testsuite/sim/h8300/biand.s
===================================================================
RCS file: /cvs/uberbaum/./sim/testsuite/sim/h8300/biand.s,v
retrieving revision 1.1
diff -u -p -r1.1 biand.s
--- sim/testsuite/sim/h8300/biand.s 19 Jun 2003 02:40:12 -0000 1.1
+++ sim/testsuite/sim/h8300/biand.s 21 Jun 2004 10:42:48 -0000
@@ -104,7 +104,7 @@ biand_imm3_abs8:
 
 	test_grs_a5a5		; general registers should not be changed.
 
-.if (sim_cpu)			; non-zero means not h8300
+.if (sim_cpu > h8300h)
 biand_imm3_abs16:
 	set_grs_a5a5
 	set_ccr_zero
@@ -314,7 +314,7 @@ bild_imm3_abs8:
 
 	test_grs_a5a5		; general registers should not be changed.
 
-.if (sim_cpu)			; non-zero means not h8300
+.if (sim_cpu > h8300h)
 bild_imm3_abs16:
 	set_grs_a5a5
 	set_ccr_zero
Index: sim/testsuite/sim/h8300/bset.s
===================================================================
RCS file: /cvs/uberbaum/./sim/testsuite/sim/h8300/bset.s,v
retrieving revision 1.2
diff -u -p -r1.2 bset.s
--- sim/testsuite/sim/h8300/bset.s 19 Jun 2003 02:40:12 -0000 1.2
+++ sim/testsuite/sim/h8300/bset.s 21 Jun 2004 10:42:51 -0000
@@ -263,6 +263,7 @@ bclr_imm3_ind:	
 	test_gr_a5a5 6
 	test_gr_a5a5 7
 
+.if (sim_cpu > h8300h)
 bset_imm3_abs16:
 	set_grs_a5a5		; Fill all general regs with a fixed pattern
 
@@ -383,6 +384,7 @@ bclr_imm3_abs16:	
 	test_gr_a5a5 6
 	test_gr_a5a5 7
 .endif
+.endif
 
 bset_rs8_rd8:
 	set_grs_a5a5		; Fill all general regs with a fixed pattern
@@ -644,6 +646,7 @@ bclr_rs8_ind:	
 	test_gr_a5a5 6
 	test_gr_a5a5 7
 
+.if (sim_cpu > h8300h)
 bset_rs8_abs32:
 	set_grs_a5a5		; Fill all general regs with a fixed pattern
 
@@ -780,6 +783,7 @@ bclr_rs8_abs32:	
 	test_gr_a5a5 6
 	test_gr_a5a5 7
 .endif
+.endif
 
 .if (sim_cpu == h8sx)
 bset_eq_imm3_abs16:

[-- Attachment #3: Type: text/plain, Size: 188 bytes --]


-- 
Alexandre Oliva             http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}

             reply	other threads:[~2004-06-21 11:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-21 11:08 Alexandre Oliva [this message]
2004-06-22 19:43 ` Andrew Cagney

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=or8yehb22q.fsf@livre.redhat.lsd.ic.unicamp.br \
    --to=aoliva@redhat.com \
    --cc=gdb-patches@sources.redhat.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