+2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
+
+ * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
+ for constant scalar integers.
+ (simplify_relational_operation_1): Likewise.
+
2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
* config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
rtx tem;
/* (op (bswap x) C1)) -> (bswap (op x C2)) with C2 swapped. */
- if (GET_CODE (op0) == BSWAP
- && (CONST_INT_P (op1) || CONST_DOUBLE_AS_INT_P (op1)))
+ if (GET_CODE (op0) == BSWAP && CONST_SCALAR_INT_P (op1))
{
tem = simplify_gen_binary (code, mode, XEXP (op0, 0),
simplify_gen_unary (BSWAP, mode, op1, mode));
/* (eq/ne (bswap x) C1) simplifies to (eq/ne x C2) with C2 swapped. */
if ((code == EQ || code == NE)
&& GET_CODE (op0) == BSWAP
- && (CONST_INT_P (op1) || CONST_DOUBLE_AS_INT_P (op1)))
+ && CONST_SCALAR_INT_P (op1))
return simplify_gen_relational (code, mode, cmp_mode, XEXP (op0, 0),
simplify_gen_unary (BSWAP, cmp_mode,
op1, cmp_mode));