This is the mail archive of the
cgen@sourceware.org
mailing list for the CGEN project.
Re: 64-bit instruction mask emitting as signed hex value
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- To: Brian Mokrzycki <brian-mokrzycki at uiowa dot edu>
- Cc: cgen at sourceware dot org
- Date: Wed, 5 Oct 2011 16:34:02 -0400
- Subject: Re: 64-bit instruction mask emitting as signed hex value
- References: <857E14BA-89BB-47E3-8BC9-CC02F296787F@uiowa.edu>
Hi -
On Mon, Oct 03, 2011 at 09:57:39PM -0500, Brian Mokrzycki wrote:
> [...]
Good hunting!
> Guile 1.6.8
> guile> (number->string 0xFFFFFFFFFFFFFFFF 16)
> "ffffffffffffffff"
>
> Guile 1.8.7
> guile> (number->string 0xFFFFFFFFFFFFFFFF 16)
> "-1"
In the case of guile 1.8.8 (fedora 15 x86_64),
and guile 1.8.0 (rhel5 i386),
guile> (number->string 18446744073709551615 16)
"ffffffffffffffff"
Maybe something's wrong just with your build of guile somehow.
- FChE