summaryrefslogtreecommitdiff
path: root/gcc/simplify-rtx.c
diff options
context:
space:
mode:
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-20 01:44:25 +0000
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-20 01:44:25 +0000
commitff8365c7a0369c879e6b69256d5c3b34cbaeb9e1 (patch)
tree65241ea470c885b05a28e11f34465f5f77e47c08 /gcc/simplify-rtx.c
parent22b265f301a0ba06a9583210b69bc9a11a54d9ec (diff)
downloadgcc-ff8365c7a0369c879e6b69256d5c3b34cbaeb9e1.tar.gz
* simplify-rtx.c (simplify_ternary_operation): Use
trunc_int_for_mode. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90948 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/simplify-rtx.c')
-rw-r--r--gcc/simplify-rtx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c
index e463fef1efe..a9d4ba3e5d2 100644
--- a/gcc/simplify-rtx.c
+++ b/gcc/simplify-rtx.c
@@ -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;