This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Gas/bignum expressions
- To: binutils at sourceware dot cygnus dot com
- Subject: Gas/bignum expressions
- From: Jan Hubicka <jh at suse dot cz>
- Date: Wed, 21 Jun 2000 14:38:17 +0200
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