This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: How can I create a const rtx other than 0, 1, 2
- From: "Meissner, Michael" <michael dot meissner at amd dot com>
- To: "Liu Haibin" <liu dot haibin at gmail dot com>, gcc at gcc dot gnu dot org
- Date: Fri, 22 Jul 2005 12:30:11 -0400
- Subject: RE: How can I create a const rtx other than 0, 1, 2
Use the GEN_INT macro to create an appropriate (const_int <number>) RTL:
operand[1] = GEN_INT (111);
-----Original Message-----
From: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] On Behalf Of
Liu Haibin
Sent: Friday, July 22, 2005 3:23 AM
To: gcc@gcc.gnu.org
Subject: How can I create a const rtx other than 0, 1, 2
Hi,
There's const0_rtx, const1_rtx and const2_rtx. How can I create a
const rtx other than 0, 1, 2? I want to use it in md file, like
operand[1] = 111.
I know I must use const rtx here. How can I do it? A simple question,
but just no idea where to find the answer.
Regards,
Timothy