summaryrefslogtreecommitdiff
path: root/gcc/dojump.c
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-21 16:04:55 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-21 16:04:55 +0000
commitc4c17cb1cad7fb38a8e75c7950aca0323ab4f9e4 (patch)
treedd6f17f7c1a43c9f7b7b15d90dfb4d305f35215f /gcc/dojump.c
parent149f5e18ed8546e5387a4010e28e18133ea660d6 (diff)
downloadgcc-c4c17cb1cad7fb38a8e75c7950aca0323ab4f9e4.tar.gz
2004-03-21 Andrew Pinski <pinskia@gcc.gnu.org>
* dojump.c (prefer_and_bit_test): Fix which part of the and_test is replaced. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79784 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dojump.c')
-rw-r--r--gcc/dojump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dojump.c b/gcc/dojump.c
index 83af19bb7f3..09a13d988c5 100644
--- a/gcc/dojump.c
+++ b/gcc/dojump.c
@@ -135,7 +135,7 @@ prefer_and_bit_test (enum machine_mode mode, int bitnum)
}
/* Fill in the integers. */
- XEXP (and_test, 0) = GEN_INT ((unsigned HOST_WIDE_INT) 1 << bitnum);
+ XEXP (and_test, 1) = GEN_INT ((unsigned HOST_WIDE_INT) 1 << bitnum);
XEXP (XEXP (shift_test, 0), 1) = GEN_INT (bitnum);
return (rtx_cost (and_test, IF_THEN_ELSE)