]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
simplify-rtx.c (simplify_ternary_operation): Use trunc_int_for_mode.
authorAldy Hernandez <aldyh@redhat.com>
Sat, 20 Nov 2004 01:44:25 +0000 (01:44 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Sat, 20 Nov 2004 01:44:25 +0000 (01:44 +0000)
        * simplify-rtx.c (simplify_ternary_operation): Use
        trunc_int_for_mode.

From-SVN: r90948

gcc/ChangeLog
gcc/simplify-rtx.c

index 91282c311e9e5d2458d4c692d19b706b05dfb08b..760e977ec5767bef8bf851512f21f3342c77a16a 100644 (file)
@@ -1,3 +1,8 @@
+2004-11-19  Aldy Hernandez  <aldyh@redhat.com>
+
+        * simplify-rtx.c (simplify_ternary_operation): Use
+        trunc_int_for_mode.
+
 2004-11-19  Kazu Hirata  <kazu@cs.umass.edu>
 
        * tree-cfg.c (reinstall_phi_args): New.
index e463fef1efe59e49a26d3e0a7cd04b995b7c58da..a9d4ba3e5d24597ea881c9c2e6e53a92f5b71b33 100644 (file)
@@ -3170,7 +3170,7 @@ simplify_ternary_operation (enum rtx_code code, enum machine_mode mode,
                  != ((HOST_WIDE_INT) (-1) << (width - 1))))
            val &= ((HOST_WIDE_INT) 1 << width) - 1;
 
-         return GEN_INT (val);
+         return gen_int_mode (val, mode);
        }
       break;