OSDN Git Service

* simplify-rtx.c (simplify_ternary_operation): Use
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 20 Nov 2004 01:44:25 +0000 (01:44 +0000)
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 20 Nov 2004 01:44:25 +0000 (01:44 +0000)
        trunc_int_for_mode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90948 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/simplify-rtx.c

index 91282c3..760e977 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 e463fef..a9d4ba3 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;