This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Can hex numbers appear as a const_int in md files?



> So I tried changing the constant to 0x80000000 but the resulting code
> in insn-recog.c showed a zero.  I'm pretty sure this is because the
> hex number is being passed to atoi/atol in read-rtx.c.

Yup.  Decimal numbers only.  We'd need a portable strtoll() (without
libiberty too, until we have a build-libiberty) to support hex.

> However, I notice in several places that hex numbers are used in this
> same context in other md files.  So what's up?  Are these below all
> bugs?

They're all bugs.  At least, the 1750a and i386 ones are.


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