Commit 5be86fec by Kazu Hirata Committed by Kazu Hirata

* simplify-rtx.c: Fix formatting.

From-SVN: r65275
parent 984e25ac
2003-04-05 Kazu Hirata <kazu@cs.umass.edu>
* simplify-rtx.c: Fix formatting.
2003-04-05 Andrew Pinski <apinski@apple.com> 2003-04-05 Andrew Pinski <apinski@apple.com>
* config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2 * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
......
...@@ -325,7 +325,7 @@ simplify_replace_rtx (x, old, new) ...@@ -325,7 +325,7 @@ simplify_replace_rtx (x, old, new)
GET_MODE (SUBREG_REG (x)), GET_MODE (SUBREG_REG (x)),
SUBREG_BYTE (x)); SUBREG_BYTE (x));
if (exp) if (exp)
x = exp; x = exp;
} }
return x; return x;
...@@ -1337,19 +1337,19 @@ simplify_binary_operation (code, mode, op0, op1) ...@@ -1337,19 +1337,19 @@ simplify_binary_operation (code, mode, op0, op1)
/* (x - (x & y)) -> (x & ~y) */ /* (x - (x & y)) -> (x & ~y) */
if (GET_CODE (op1) == AND) if (GET_CODE (op1) == AND)
{ {
if (rtx_equal_p (op0, XEXP (op1, 0))) if (rtx_equal_p (op0, XEXP (op1, 0)))
{ {
tem = simplify_gen_unary (NOT, mode, XEXP (op1, 1), tem = simplify_gen_unary (NOT, mode, XEXP (op1, 1),
GET_MODE (XEXP (op1, 1))); GET_MODE (XEXP (op1, 1)));
return simplify_gen_binary (AND, mode, op0, tem); return simplify_gen_binary (AND, mode, op0, tem);
} }
if (rtx_equal_p (op0, XEXP (op1, 1))) if (rtx_equal_p (op0, XEXP (op1, 1)))
{ {
tem = simplify_gen_unary (NOT, mode, XEXP (op1, 0), tem = simplify_gen_unary (NOT, mode, XEXP (op1, 0),
GET_MODE (XEXP (op1, 0))); GET_MODE (XEXP (op1, 0)));
return simplify_gen_binary (AND, mode, op0, tem); return simplify_gen_binary (AND, mode, op0, tem);
} }
} }
break; break;
case MULT: case MULT:
...@@ -1605,15 +1605,15 @@ simplify_binary_operation (code, mode, op0, op1) ...@@ -1605,15 +1605,15 @@ simplify_binary_operation (code, mode, op0, op1)
rtvec v = rtvec_alloc (n_elts); rtvec v = rtvec_alloc (n_elts);
unsigned int i; unsigned int i;
if (XVECLEN (trueop1, 0) != (int)n_elts) if (XVECLEN (trueop1, 0) != (int) n_elts)
abort (); abort ();
for (i = 0; i < n_elts; i++) for (i = 0; i < n_elts; i++)
{ {
rtx x = XVECEXP (trueop1, 0, i); rtx x = XVECEXP (trueop1, 0, i);
if (GET_CODE (x) != CONST_INT) if (GET_CODE (x) != CONST_INT)
abort (); abort ();
RTVEC_ELT (v, i) = CONST_VECTOR_ELT (trueop0, INTVAL (x)); RTVEC_ELT (v, i) = CONST_VECTOR_ELT (trueop0, INTVAL (x));
} }
return gen_rtx_CONST_VECTOR (mode, v); return gen_rtx_CONST_VECTOR (mode, v);
...@@ -1684,7 +1684,7 @@ simplify_binary_operation (code, mode, op0, op1) ...@@ -1684,7 +1684,7 @@ simplify_binary_operation (code, mode, op0, op1)
return gen_rtx_CONST_VECTOR (mode, v); return gen_rtx_CONST_VECTOR (mode, v);
} }
} }
return 0; return 0;
default: default:
...@@ -2556,7 +2556,7 @@ simplify_ternary_operation (code, mode, op0_mode, op0, op1, op2) ...@@ -2556,7 +2556,7 @@ simplify_ternary_operation (code, mode, op0_mode, op0, op1, op2)
{ {
int elt_size = GET_MODE_SIZE (GET_MODE_INNER (mode)); int elt_size = GET_MODE_SIZE (GET_MODE_INNER (mode));
unsigned n_elts = (GET_MODE_SIZE (mode) / elt_size); unsigned n_elts = (GET_MODE_SIZE (mode) / elt_size);
int mask = (1<<n_elts) - 1; int mask = (1 << n_elts) - 1;
if (!(INTVAL (op2) & mask)) if (!(INTVAL (op2) & mask))
return op1; return op1;
...@@ -2681,8 +2681,8 @@ simplify_subreg (outermode, op, innermode, byte) ...@@ -2681,8 +2681,8 @@ simplify_subreg (outermode, op, innermode, byte)
int subbyte = byte % elt_size; int subbyte = byte % elt_size;
op = simplify_subreg (new_mode, op, innermode, byte - subbyte); op = simplify_subreg (new_mode, op, innermode, byte - subbyte);
if (! op) if (! op)
return NULL_RTX; return NULL_RTX;
return simplify_subreg (outermode, op, new_mode, subbyte); return simplify_subreg (outermode, op, new_mode, subbyte);
} }
else if (GET_MODE_CLASS (outermode) == MODE_INT) else if (GET_MODE_CLASS (outermode) == MODE_INT)
...@@ -3091,7 +3091,7 @@ simplify_rtx (x) ...@@ -3091,7 +3091,7 @@ simplify_rtx (x)
SUBREG_BYTE (x)); SUBREG_BYTE (x));
if (code == CONSTANT_P_RTX) if (code == CONSTANT_P_RTX)
{ {
if (CONSTANT_P (XEXP (x,0))) if (CONSTANT_P (XEXP (x, 0)))
return const1_rtx; return const1_rtx;
} }
return NULL; return NULL;
......
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