Commit 5feca984 by Kaveh R. Ghazi Committed by Kaveh Ghazi

pa.h (CONST_COSTS): When checking the CONST_DOUBLE enumerated case...

       * pa.h (CONST_COSTS): When checking the CONST_DOUBLE enumerated
       case, add parentheses to specify the proper order of precedence in
       the if-statement.

From-SVN: r18291
parent 51723711
Sat Feb 28 07:54:03 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* pa.h (CONST_COSTS): When checking the CONST_DOUBLE enumerated
case, add parentheses to specify the proper order of precedence in
the if-statement.
* c-aux-info.c: Include string.h/strings.h.
* pa.c: Include stdlib.h.
......
......@@ -1826,20 +1826,20 @@ while (0)
return it with a return statement. Otherwise, break from the switch. */
#define CONST_COSTS(RTX,CODE,OUTER_CODE) \
case CONST_INT: \
if (INTVAL (RTX) == 0) return 0; \
if (INT_14_BITS (RTX)) return 1; \
case HIGH: \
return 2; \
case CONST: \
case LABEL_REF: \
case SYMBOL_REF: \
return 4; \
case CONST_DOUBLE: \
if (RTX == CONST0_RTX (DFmode) || RTX == CONST0_RTX (SFmode)\
&& OUTER_CODE != SET) \
return 0; \
else \
case CONST_INT: \
if (INTVAL (RTX) == 0) return 0; \
if (INT_14_BITS (RTX)) return 1; \
case HIGH: \
return 2; \
case CONST: \
case LABEL_REF: \
case SYMBOL_REF: \
return 4; \
case CONST_DOUBLE: \
if ((RTX == CONST0_RTX (DFmode) || RTX == CONST0_RTX (SFmode)) \
&& OUTER_CODE != SET) \
return 0; \
else \
return 8;
#define ADDRESS_COST(RTX) \
......
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