summaryrefslogtreecommitdiffstats
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-06-27 23:09:37 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-06-27 23:09:37 +0000
commit400e5267e0906dc35403f1fabbcd57661ca32119 (patch)
treea1397e13e0595216c10b8f9e6b87db743f92bf2f /gcc/fold-const.c
parent6d3e85e7653c2a84de7dd55697f3c177cc3fc4e8 (diff)
downloadppe42-gcc-400e5267e0906dc35403f1fabbcd57661ca32119.tar.gz
ppe42-gcc-400e5267e0906dc35403f1fabbcd57661ca32119.zip
(fold_truthop): Commute unextend and convert on l_const and r_const.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10065 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 7238e7a5d4d..796f742d660 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -2866,7 +2866,7 @@ fold_truthop (code, truth_type, lhs, rhs)
if (l_const)
{
- l_const = convert (type, unextend (l_const, ll_bitsize, ll_unsignedp));
+ l_const = unextend (convert (type, l_const), ll_bitsize, ll_unsignedp);
l_const = const_binop (LSHIFT_EXPR, l_const, size_int (xll_bitpos), 0);
if (! integer_zerop (const_binop (BIT_AND_EXPR, l_const,
fold (build1 (BIT_NOT_EXPR,
@@ -2883,7 +2883,7 @@ fold_truthop (code, truth_type, lhs, rhs)
}
if (r_const)
{
- r_const = convert (type, unextend (r_const, rl_bitsize, rl_unsignedp));
+ r_const = unextend (convert (type, r_const), rl_bitsize, rl_unsignedp);
r_const = const_binop (LSHIFT_EXPR, r_const, size_int (xrl_bitpos), 0);
if (! integer_zerop (const_binop (BIT_AND_EXPR, r_const,
fold (build1 (BIT_NOT_EXPR,
OpenPOWER on IntegriCloud