public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: James E Wilson <wilson@specifixinc.com>
To: "H. J. Lu" <hjl@lucon.org>
Cc: binutils@sources.redhat.com
Subject: Re: PATCH: Disable hint in B unit for Montecito
Date: Fri, 18 Feb 2005 04:43:00 -0000	[thread overview]
Message-ID: <1108692326.5617.89.camel@aretha.corp.specifixinc.com> (raw)
In-Reply-To: <20050217222654.GA9640@lucon.org>

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

On Thu, 2005-02-17 at 14:26, H. J. Lu wrote:
> This patch makes dv-srlz.o much larger and fails

We failed to correctly set user_template when manually inserting
serialization instructions.  This is trivial to fix.  We just need to
set user_template to -1 after clearing CURR_SLOT.

The following patch passes the testsuite, and has been checked in.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com


[-- Attachment #2: patch.insn.bundling.2 --]
[-- Type: text/x-troff-man, Size: 2131 bytes --]

2005-02-17  James E Wilson  <wilson@specifixinc.com>

	* config/tc-ia64.c (emit_one_bundle): Stop filling a bundle if we
	see an instruction that specifies a template.

Index: tc-ia64.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ia64.c,v
retrieving revision 1.144
diff -p -p -r1.144 tc-ia64.c
*** tc-ia64.c	17 Feb 2005 07:43:11 -0000	1.144
--- tc-ia64.c	18 Feb 2005 01:46:57 -0000
***************
*** 1,5 ****
  /* tc-ia64.c -- Assembler for the HP/Intel IA-64 architecture.
!    Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004
     Free Software Foundation, Inc.
     Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
  
--- 1,5 ----
  /* tc-ia64.c -- Assembler for the HP/Intel IA-64 architecture.
!    Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
     Free Software Foundation, Inc.
     Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
  
*************** emit_one_bundle ()
*** 6564,6569 ****
--- 6564,6574 ----
  	  break; /* Need to start a new bundle.  */
  	}
  
+       /* If this instruction specifies a template, then it must be the first
+ 	 instruction of a bundle.  */
+       if (curr != first && md.slot[curr].user_template >= 0)
+ 	break;
+ 
        if (idesc->flags & IA64_OPCODE_SLOT2)
  	{
  	  if (manual_bundling && !manual_bundling_off)
*************** remove_marked_resource (rs)
*** 10103,10108 ****
--- 10108,10114 ----
  	  struct slot oldslot = CURR_SLOT;
  	  /* Manually jam a srlz.i insn into the stream */
  	  memset (&CURR_SLOT, 0, sizeof (CURR_SLOT));
+ 	  CURR_SLOT.user_template = -1;
  	  CURR_SLOT.idesc = ia64_find_opcode ("srlz.i");
  	  instruction_serialization ();
  	  md.curr_slot = (md.curr_slot + 1) % NUM_SLOTS;
*************** remove_marked_resource (rs)
*** 10124,10129 ****
--- 10130,10136 ----
  	struct slot oldslot = CURR_SLOT;
  	/* Manually jam a srlz.d insn into the stream */
  	memset (&CURR_SLOT, 0, sizeof (CURR_SLOT));
+ 	CURR_SLOT.user_template = -1;
  	CURR_SLOT.idesc = ia64_find_opcode ("srlz.d");
  	data_serialization ();
  	md.curr_slot = (md.curr_slot + 1) % NUM_SLOTS;

      reply	other threads:[~2005-02-18  2:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-17  0:10 H. J. Lu
2005-02-17  3:37 ` James E Wilson
2005-02-17 12:37   ` H. J. Lu
2005-02-17 13:05     ` H. J. Lu
2005-02-17 21:42       ` H. J. Lu
2005-02-17 21:47         ` H. J. Lu
2005-02-18  0:13         ` James E Wilson
2005-02-18  2:05           ` H. J. Lu
2005-02-18  4:43             ` James E Wilson [this message]

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=1108692326.5617.89.camel@aretha.corp.specifixinc.com \
    --to=wilson@specifixinc.com \
    --cc=binutils@sources.redhat.com \
    --cc=hjl@lucon.org \
    /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).