Commit 1068ced5 by Marek Polacek

alpha.h (CLZ_DEFINED_VALUE_AT_ZERO, [...]): Return 0/1 rather than bool.

	* config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
	CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
	* config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
	CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.

From-SVN: r214171
parent c1286e0b
2014-08-19 Marek Polacek <polacek@redhat.com>
* config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
* config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
2014-08-19 David Malcolm <dmalcolm@redhat.com>
* sel-sched-ir.h (BND_TO): insn_t will eventually be an
......@@ -27,7 +34,7 @@
PR other/62168
* configure.ac: Set install_gold_as_default to no first.
* configure: Regenerated.
* configure: Regenerated.
2014-08-19 David Malcolm <dmalcolm@redhat.com>
......
......@@ -912,8 +912,10 @@ do { \
#define TRULY_NOOP_TRUNCATION(OUTPREC, INPREC) 1
/* The CIX ctlz and cttz instructions return 64 for zero. */
#define CLZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) ((VALUE) = 64, TARGET_CIX)
#define CTZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) ((VALUE) = 64, TARGET_CIX)
#define CLZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) ((VALUE) = 64, \
TARGET_CIX ? 1 : 0)
#define CTZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) ((VALUE) = 64, \
TARGET_CIX ? 1 : 0)
/* Define the value returned by a floating-point comparison instruction. */
......
......@@ -2498,9 +2498,9 @@ extern void debug_dispatch_window (int);
/* The value at zero is only defined for the BMI instructions
LZCNT and TZCNT, not the BSR/BSF insns in the original isa. */
#define CTZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) \
((VALUE) = GET_MODE_BITSIZE (MODE), TARGET_BMI)
((VALUE) = GET_MODE_BITSIZE (MODE), TARGET_BMI ? 1 : 0)
#define CLZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) \
((VALUE) = GET_MODE_BITSIZE (MODE), TARGET_LZCNT)
((VALUE) = GET_MODE_BITSIZE (MODE), TARGET_LZCNT ? 1 : 0)
/* Flags returned by ix86_get_callcvt (). */
......
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