This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] c4x.md: Use GEN_INT instead of gen_rtx (CONST_INT, ...)
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 31 Jan 2004 18:21:31 -0500 (EST)
- Subject: [patch] c4x.md: Use GEN_INT instead of gen_rtx (CONST_INT, ...)
Hi,
Built c4x-elf. Committed as obvious.
Kazu Hirata
2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
* config/c4x/c4x.md: Use GEN_INT instead of
gen_rtx (CONST_INT, ...).
Index: c4x.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/c4x/c4x.md,v
retrieving revision 1.83
diff -u -r1.83 c4x.md
--- c4x.md 31 Jan 2004 02:06:54 -0000 1.83
+++ c4x.md 31 Jan 2004 23:12:05 -0000
@@ -1022,8 +1022,7 @@
"
{
/* Generate two's complement value of 16 MSBs. */
- operands[2] = gen_rtx (CONST_INT, VOIDmode,
- (((INTVAL (operands[1]) >> 16) & 0xffff)
+ operands[2] = GEN_INT ((((INTVAL (operands[1]) >> 16) & 0xffff)
- 0x8000) ^ ~0x7fff);
operands[3] = GEN_INT (INTVAL (operands[1]) & 0xffff);
operands[4] = GEN_INT (16);
@@ -1043,8 +1042,7 @@
"
{
/* Generate two's complement value of 16 MSBs. */
- operands[2] = gen_rtx (CONST_INT, VOIDmode,
- (((INTVAL (operands[1]) >> 16) & 0xffff)
+ operands[2] = GEN_INT ((((INTVAL (operands[1]) >> 16) & 0xffff)
- 0x8000) ^ ~0x7fff);
operands[3] = GEN_INT (INTVAL (operands[1]) & 0xffff);
operands[4] = GEN_INT (16);