summaryrefslogtreecommitdiff
path: root/gcc/optabs.c
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@cavium.com>2012-09-05 20:23:22 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2012-09-05 13:23:22 -0700
commit5285c21c6eb79ea45cde5e3d83d5cc127629d20d (patch)
tree4bfdadc6f4af48242c8aa2bf6200fb05686b38e5 /gcc/optabs.c
parent933d309fcf848e4d9a1afb0203a99fab8f0aeba7 (diff)
downloadgcc-5285c21c6eb79ea45cde5e3d83d5cc127629d20d.tar.gz
optabs.c (emit_conditional_add): Correct comment about the arguments.
2012-09-05 Andrew Pinski <apinski@cavium.com> * optabs.c (emit_conditional_add): Correct comment about the arguments. Remove code which might swap op2 and op3 since they cannot be swapped. * doc/md.texi (add@var{mode}cc): Fix document about how the arguments are used. From-SVN: r190994
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r--gcc/optabs.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c
index ebb2af5b145..02c2fd5dd0f 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -4584,7 +4584,7 @@ can_conditionally_move_p (enum machine_mode mode)
the mode to use should they be constants. If it is VOIDmode, they cannot
both be constants.
- OP2 should be stored in TARGET if the comparison is true, otherwise OP2+OP3
+ OP2 should be stored in TARGET if the comparison is false, otherwise OP2+OP3
should be stored there. MODE is the mode to use should they be constants.
If it is VOIDmode, they cannot both be constants.
@@ -4598,7 +4598,6 @@ emit_conditional_add (rtx target, enum rtx_code code, rtx op0, rtx op1,
{
rtx tem, comparison, last;
enum insn_code icode;
- enum rtx_code reversed;
/* If one operand is constant, make it the second one. Only do this
if the other operand is not constant as well. */
@@ -4622,16 +4621,6 @@ emit_conditional_add (rtx target, enum rtx_code code, rtx op0, rtx op1,
if (cmode == VOIDmode)
cmode = GET_MODE (op0);
- if (swap_commutative_operands_p (op2, op3)
- && ((reversed = reversed_comparison_code_parts (code, op0, op1, NULL))
- != UNKNOWN))
- {
- tem = op2;
- op2 = op3;
- op3 = tem;
- code = reversed;
- }
-
if (mode == VOIDmode)
mode = GET_MODE (op2);