Commit 6a0f85e3 by Torbjorn Granlund

(valid_dbcc_comparison_p): Don't test cc_prev_status here.

(flags_in_68881): New function.

From-SVN: r11516
parent 69f724c0
...@@ -569,13 +569,8 @@ valid_dbcc_comparison_p (x, mode) ...@@ -569,13 +569,8 @@ valid_dbcc_comparison_p (x, mode)
rtx x; rtx x;
enum machine_mode mode; enum machine_mode mode;
{ {
/* We could add support for these in the future */
if (cc_prev_status.flags & CC_IN_68881)
return 0;
switch (GET_CODE (x)) switch (GET_CODE (x))
{ {
case EQ: case NE: case GTU: case LTU: case EQ: case NE: case GTU: case LTU:
case GEU: case LEU: case GEU: case LEU:
return 1; return 1;
...@@ -589,16 +584,23 @@ valid_dbcc_comparison_p (x, mode) ...@@ -589,16 +584,23 @@ valid_dbcc_comparison_p (x, mode)
} }
} }
/* Return non-zero if flags are currently in the 68881 flag register. */
int
flags_in_68881 ()
{
/* We could add support for these in the future */
return cc_status.flags & CC_IN_68881;
}
/* Output a dbCC; jCC sequence. Note we do not handle the /* Output a dbCC; jCC sequence. Note we do not handle the
floating point version of this sequence (Fdbcc). We also floating point version of this sequence (Fdbcc). We also
do not handle alternative conditions when CC_NO_OVERFLOW is do not handle alternative conditions when CC_NO_OVERFLOW is
set. It is assumed that valid_dbcc_comparison_p will kick set. It is assumed that valid_dbcc_comparison_p and flags_in_68881 will
those out before we get here. */ kick those out before we get here. */
output_dbcc_and_branch (operands) output_dbcc_and_branch (operands)
rtx *operands; rtx *operands;
{ {
switch (GET_CODE (operands[3])) switch (GET_CODE (operands[3]))
{ {
case EQ: case EQ:
......
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