summaryrefslogtreecommitdiff
path: root/gcc/simplify-rtx.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-19 18:00:43 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-19 18:00:43 +0000
commit2d232d05278c1a5e45612ed694993cf7e9e5f963 (patch)
tree03b085deca8da9a691cb5cdc16540f0276bd3595 /gcc/simplify-rtx.c
parent4540d35fe4afd8f89e105aac73da00cbd3deaf2e (diff)
downloadgcc-2d232d05278c1a5e45612ed694993cf7e9e5f963.tar.gz
* emit-rtl.c (gen_int_mode): New function.
* rtl.h: Prototype for it. * combine.c (make_extraction, simplify_comparison), expmed.c (store_bit_field, expand_mult_highpart, expand_divmod), expr.c (convert_modes, store_field), optabs.c (expand_fix), simplify-rtx.c (neg_const_int, simplify_unary_real), * config/rs6000/rs6000.c, config/rs6000/rs6000.md: Use it instead of GEN_INT (trunc_int_for_mode (...)). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51030 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/simplify-rtx.c')
-rw-r--r--gcc/simplify-rtx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c
index 5fba25cf5a9..21012ce31a3 100644
--- a/gcc/simplify-rtx.c
+++ b/gcc/simplify-rtx.c
@@ -114,7 +114,7 @@ neg_const_int (mode, i)
enum machine_mode mode;
rtx i;
{
- return GEN_INT (trunc_int_for_mode (- INTVAL (i), mode));
+ return gen_int_mode (- INTVAL (i), mode);
}
@@ -376,7 +376,7 @@ simplify_unary_real (p)
default:
abort ();
}
- args->result = GEN_INT (trunc_int_for_mode (i, args->mode));
+ args->result = gen_int_mode (i, args->mode);
}
else
{