From d37eb70511ee90dce4addd1b0f96d7baf0ae6963 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 31 Jan 2004 23:21:25 +0000 Subject: [PATCH] c4x.md: Use GEN_INT instead of gen_rtx (CONST_INT, ...). * config/c4x/c4x.md: Use GEN_INT instead of gen_rtx (CONST_INT, ...). From-SVN: r77057 --- gcc/ChangeLog | 5 +++++ gcc/config/c4x/c4x.md | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3f395838b00..1eb1e15fb19 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-01-31 Kazu Hirata + + * config/c4x/c4x.md: Use GEN_INT instead of + gen_rtx (CONST_INT, ...). + 2004-01-31 Richard Henderson * varasm.c (output_constant_pool): Don't zap the pool. diff --git a/gcc/config/c4x/c4x.md b/gcc/config/c4x/c4x.md index 8dbd6be07d1..a27e29b64c1 100644 --- a/gcc/config/c4x/c4x.md +++ b/gcc/config/c4x/c4x.md @@ -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);