public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Gas/bignum expressions
@ 2000-06-21  5:38 Jan Hubicka
  2000-06-21  5:53 ` Alan Modra
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Hubicka @ 2000-06-21  5:38 UTC (permalink / raw)
  To: binutils

Hi
While working on x86-64 port, that needs to use 64bit immediates,
I've run into following problem.
When I write
.octa ~1
I would expect to see
ff ff ff..... fe 
in the output.
But what happends is:
00 00 ... 00 ff ff ff ff

The purpose is, that whole expression gets evaulated as constant,
getting value 0xffffffff and signedness 0, so emit_expr zero
extends it and writes the resulting value.

Is that the expected behaviour, or is this an bug?
Being unable to write such an expressions for instruction immediates for
x86-64 port would be minimally strange.

Honza

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

* Re: Gas/bignum expressions
  2000-06-21  5:38 Gas/bignum expressions Jan Hubicka
@ 2000-06-21  5:53 ` Alan Modra
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Modra @ 2000-06-21  5:53 UTC (permalink / raw)
  To: Jan Hubicka; +Cc: binutils

On Wed, 21 Jun 2000, Jan Hubicka wrote:

> When I write
> .octa ~1
> I would expect to see
> ff ff ff..... fe 
> in the output.
> But what happends is:
> 00 00 ... 00 ff ff ff ff

Hi Jan,
   A workaround for this problem is to compile binutils with
--enable-64-bit-bfd

-- 
Linuxcare.  Support for the Revolution.

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

end of thread, other threads:[~2000-06-21  5:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-21  5:38 Gas/bignum expressions Jan Hubicka
2000-06-21  5:53 ` Alan Modra

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