From: Dave Brolley <brolley@redhat.com>
To: cgen@sources.redhat.com
Subject: [patch][commit] Generation of C code for Large Integer Constants
Date: Tue, 21 Aug 2007 19:40:00 -0000 [thread overview]
Message-ID: <46CB3F94.3060109@redhat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 154 bytes --]
Hi,
I've committed the attached patch which generate a call to MAKEDI when
generating C code for integer constants which are larger than 32 bits.
Dave
[-- Attachment #2: large-int.ChangeLog --]
[-- Type: text/plain, Size: 130 bytes --]
2007-08-21 Dave Brolley <brolley@redhat.com>
* rtl-c.scm (const): Generate call to MAKEDI for integers larger
than 32 bits.
[-- Attachment #3: large-int.patch.txt --]
[-- Type: text/plain, Size: 845 bytes --]
Index: cgen/rtl-c.scm
===================================================================
RCS file: /cvs/src/src/cgen/rtl-c.scm,v
retrieving revision 1.7
diff -c -p -r1.7 rtl-c.scm
*** cgen/rtl-c.scm 2 Aug 2005 19:30:10 -0000 1.7
--- cgen/rtl-c.scm 21 Aug 2007 19:36:23 -0000
***************
*** 1446,1452 ****
(let ((mode (mode:lookup mode)))
(cx:make mode
(cond ((or (mode:eq? 'DI mode)
! (mode:eq? 'UDI mode))
(string-append "MAKEDI ("
(gen-integer (high-part c)) ", "
(gen-integer (low-part c))
--- 1446,1454 ----
(let ((mode (mode:lookup mode)))
(cx:make mode
(cond ((or (mode:eq? 'DI mode)
! (mode:eq? 'UDI mode)
! (< #xffffffff c)
! (> #x-80000000 c))
(string-append "MAKEDI ("
(gen-integer (high-part c)) ", "
(gen-integer (low-part c))
reply other threads:[~2007-08-21 19:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46CB3F94.3060109@redhat.com \
--to=brolley@redhat.com \
--cc=cgen@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).