public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* loadgp in config/mips/mips.md
@ 1997-11-10 13:47 Jeffrey A Law
  1997-11-10 14:57 ` Ian Lance Taylor
  1997-11-10 15:59 ` Richard Henderson
  0 siblings, 2 replies; 3+ messages in thread
From: Jeffrey A Law @ 1997-11-10 13:47 UTC (permalink / raw)
  To: egcs

------- Forwarded Message

From: Paul Henning <phenning@cs.uiowa.edu>
Message-Id: <199711092141.PAA18185@server.cs.uiowa.edu>
To: egcs@cygnus.com
CC: Chris.Yeoh@adelaide.maptek.com.au, wilson@cygnus.com
Subject: loadgp in config/mips/mips.md
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII

xxxsystem: egcs-971105 for mips-sgi-irix6.*

I was curious about the definition of the "loadgp" instruction in
xxxconfig/mips/mips.md:

- - ----
;; Instructions to load the global pointer register.
;; This is volatile to make sure that the scheduler won't move any symbol_ref
;; uses in front of it.  All symbol_refs implicitly use the gp reg.

(define_insn "loadgp"
  [(set (reg:DI 28)
	(unspec_volatile [(match_operand:DI 0 "address_operand" "")] 2))
   (clobber (reg:DI 1))]
  ""
  "%[lui\\t$1,%%hi(%%neg(%%gp_rel(%a0)))\\n\\taddiu\\t$1,$1,%%lo(%%neg(%%gp_rel
(%a0)))\\n\\tdaddu\\t$gp,$1,$25%]"
  [(set_attr "type"	"move")
   (set_attr "mode"	"DI")
   (set_attr "length"	"3")])
- - ----

The %gp_rel and %neg relocations this puts out work fine with SGI's as,
but really confuse gas-970915.  Is this definition broken for putting
out these symbols or is gas broken for not recognizing them?

Cheers,
Paul

- ------- End of Forwarded Message


------- End of Forwarded Message


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: loadgp in config/mips/mips.md
  1997-11-10 13:47 loadgp in config/mips/mips.md Jeffrey A Law
@ 1997-11-10 14:57 ` Ian Lance Taylor
  1997-11-10 15:59 ` Richard Henderson
  1 sibling, 0 replies; 3+ messages in thread
From: Ian Lance Taylor @ 1997-11-10 14:57 UTC (permalink / raw)
  To: phenning; +Cc: egcs

   From: Paul Henning <phenning@cs.uiowa.edu>

   The %gp_rel and %neg relocations this puts out work fine with SGI's as,
   but really confuse gas-970915.  Is this definition broken for putting
   out these symbols or is gas broken for not recognizing them?

It is gas that is broken.

gas does not support Irix 6.  You can force it to be configured for
Irix 6, but it only works in certain special cases.  I would, of
course, be happy to accept patches for this.

Ian

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: loadgp in config/mips/mips.md
  1997-11-10 13:47 loadgp in config/mips/mips.md Jeffrey A Law
  1997-11-10 14:57 ` Ian Lance Taylor
@ 1997-11-10 15:59 ` Richard Henderson
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Henderson @ 1997-11-10 15:59 UTC (permalink / raw)
  To: law; +Cc: egcs

On Mon, Nov 10, 1997 at 10:09:50AM -0800, Jeffrey A Law wrote:
> The %gp_rel and %neg relocations this puts out work fine with SGI's as,
> but really confuse gas-970915.  Is this definition broken for putting
> out these symbols or is gas broken for not recognizing them?

I had patches for this once, but I lost them during some incautious
shuffling of directories.  It wouldn't be very hard to recreate though.


r~

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-11-10 15:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-11-10 13:47 loadgp in config/mips/mips.md Jeffrey A Law
1997-11-10 14:57 ` Ian Lance Taylor
1997-11-10 15:59 ` Richard Henderson

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