From: Umesh Kalappa <umesh.kalappa0@gmail.com>
To: "gcc@gcc.gnu.org" <gcc@gcc.gnu.org>
Subject: type promotion
Date: Wed, 29 Jan 2014 20:12:00 -0000 [thread overview]
Message-ID: <CAGfacvQRA7UFPH3J2JpPaE8TW7JozwWJFbq22vbfWmTUhgGLHQ@mail.gmail.com> (raw)
Hi All,
Was porting gcc 4.8.1 to the private target which has 8 bit regs and
can be used as pair for 16bit like AB ,CD but not BC or AD.
I was stuck in the type promotion like
int i;
unsigned char c;
int test ()
{
i =c;
}
defined the zero_extendqihi2 pattern for the above c construct like
(define_expand zero_extendqihi2
[(set (operand:hi 0 "" """)
(zero_extend:hi (operand:qi 1)))]
""
if(!reload_completed)
{
if(operands[1] != REG)
operands[1]= force_reg(QI,operands[1]);
/* Here i need to enforce gcc to use the next consective paired reg
like B if operands[1] is in A reg or D if operands[1] is in C */
}
)
How do i module the above reguirement in the backend ?
Thank you
~Umesh
next reply other threads:[~2014-01-29 9:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-29 20:12 Umesh Kalappa [this message]
2014-02-09 12:27 ` Richard Sandiford
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=CAGfacvQRA7UFPH3J2JpPaE8TW7JozwWJFbq22vbfWmTUhgGLHQ@mail.gmail.com \
--to=umesh.kalappa0@gmail.com \
--cc=gcc@gcc.gnu.org \
/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).