This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Gas/bignum expressions


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]