Commit 4c6fd544 by J"orn Rennecke Committed by Joern Rennecke

* expmed.c (expand_smod_pow2): Fix sign of mask.

From-SVN: r83905
parent 807a7d14
2004-06-30 J"orn Rennecke <joern.rennecke@superh.com>
* expmed.c (expand_smod_pow2): Fix sign of mask.
2004-06-29 Diego Novillo <dnovillo@redhat.com> 2004-06-29 Diego Novillo <dnovillo@redhat.com>
* tree-ssa-pre.c (phi_trans_add): Use is_gimple_min_invariant * tree-ssa-pre.c (phi_trans_add): Use is_gimple_min_invariant
......
...@@ -3124,7 +3124,7 @@ expand_smod_pow2 (enum machine_mode mode, rtx op0, HOST_WIDE_INT d) ...@@ -3124,7 +3124,7 @@ expand_smod_pow2 (enum machine_mode mode, rtx op0, HOST_WIDE_INT d)
can avoid an explicit compare operation in the following comparison can avoid an explicit compare operation in the following comparison
against zero. */ against zero. */
mask = (HOST_WIDE_INT) 1 << (GET_MODE_BITSIZE (mode) - 1) mask = (HOST_WIDE_INT) -1 << (GET_MODE_BITSIZE (mode) - 1)
| (((HOST_WIDE_INT) 1 << logd) - 1); | (((HOST_WIDE_INT) 1 << logd) - 1);
temp = expand_binop (mode, and_optab, op0, GEN_INT (mask), result, temp = expand_binop (mode, and_optab, op0, GEN_INT (mask), result,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment