aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2002-04-11 22:56:29 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2002-04-11 22:56:29 +0200
commit578fc63d144bcd49d723090a9c24f4cd69ce621d (patch)
tree575254a3262709e2caa696b88af2e2cf499d1cc8 /gcc/combine.c
parentb4f6d08917852c7180de99f354478d152f2392a3 (diff)
downloadgcc-578fc63d144bcd49d723090a9c24f4cd69ce621d.zip
gcc-578fc63d144bcd49d723090a9c24f4cd69ce621d.tar.gz
gcc-578fc63d144bcd49d723090a9c24f4cd69ce621d.tar.bz2
re PR c/6223 (internal compiler error in Wine-20020310)
PR c/6223 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz. * gcc.dg/20020411-1.c: New test. From-SVN: r52176
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index 9a9d648..e051c61 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -7382,7 +7382,7 @@ if_then_else_cond (x, ptrue, pfalse)
&& GET_MODE_BITSIZE (mode) <= HOST_BITS_PER_WIDE_INT
&& exact_log2 (nz = nonzero_bits (x, mode)) >= 0)
{
- *ptrue = GEN_INT (nz), *pfalse = const0_rtx;
+ *ptrue = gen_int_mode (nz, mode), *pfalse = const0_rtx;
return x;
}