summaryrefslogtreecommitdiff
path: root/gcc/expmed.c
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-25 00:25:28 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-25 00:25:28 +0000
commit1cf939b94e15514881a6f288f2ed9d32a4340d9f (patch)
treeae6f659f26b92f154a5b1616ec1d340e36b3a83a /gcc/expmed.c
parent7511644a5559dbe85d8553feb76d7feffe140c96 (diff)
downloadgcc-1cf939b94e15514881a6f288f2ed9d32a4340d9f.tar.gz
* expmed.c (init_expmed): A signed modulus by a power of two is
considered cheap if its less than or equal to four instructions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85134 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expmed.c')
-rw-r--r--gcc/expmed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/expmed.c b/gcc/expmed.c
index d93351da2e7..9ceee9f923a 100644
--- a/gcc/expmed.c
+++ b/gcc/expmed.c
@@ -217,7 +217,7 @@ init_expmed (void)
mul_cost[mode] = rtx_cost (&all.mult, SET);
sdiv_pow2_cheap[mode] = (rtx_cost (&all.div, SET) <= 2 * add_cost[mode]);
- smod_pow2_cheap[mode] = (rtx_cost (&all.mod, SET) <= 2 * add_cost[mode]);
+ smod_pow2_cheap[mode] = (rtx_cost (&all.mod, SET) <= 4 * add_cost[mode]);
wider_mode = GET_MODE_WIDER_MODE (mode);
if (wider_mode != VOIDmode)