Commit e4e040f1 by Uros Bizjak Committed by Uros Bizjak

alpha.c: Use SUBREG_P predicate.

	* config/alpha/alpha.c: Use SUBREG_P predicate.
	* config/alpha/predicates.md: Ditto.

From-SVN: r226232
parent 2446df20
2015-07-26 Uros Bizjak <ubizjak@gmail.com>
* config/alpha/alpha.c: Use SUBREG_P predicate.
* config/alpha/predicates.md: Ditto.
2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com> 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
* config.host (s390*-*-*): Include driver-native.c only when * config.host (s390*-*-*): Include driver-native.c only when
......
...@@ -700,7 +700,7 @@ resolve_reload_operand (rtx op) ...@@ -700,7 +700,7 @@ resolve_reload_operand (rtx op)
if (reload_in_progress) if (reload_in_progress)
{ {
rtx tmp = op; rtx tmp = op;
if (GET_CODE (tmp) == SUBREG) if (SUBREG_P (tmp))
tmp = SUBREG_REG (tmp); tmp = SUBREG_REG (tmp);
if (REG_P (tmp) if (REG_P (tmp)
&& REGNO (tmp) >= FIRST_PSEUDO_REGISTER) && REGNO (tmp) >= FIRST_PSEUDO_REGISTER)
...@@ -891,7 +891,7 @@ alpha_legitimate_address_p (machine_mode mode, rtx x, bool strict) ...@@ -891,7 +891,7 @@ alpha_legitimate_address_p (machine_mode mode, rtx x, bool strict)
x = XEXP (x, 0); x = XEXP (x, 0);
/* Discard non-paradoxical subregs. */ /* Discard non-paradoxical subregs. */
if (GET_CODE (x) == SUBREG if (SUBREG_P (x)
&& (GET_MODE_SIZE (GET_MODE (x)) && (GET_MODE_SIZE (GET_MODE (x))
< GET_MODE_SIZE (GET_MODE (SUBREG_REG (x))))) < GET_MODE_SIZE (GET_MODE (SUBREG_REG (x)))))
x = SUBREG_REG (x); x = SUBREG_REG (x);
...@@ -919,7 +919,7 @@ alpha_legitimate_address_p (machine_mode mode, rtx x, bool strict) ...@@ -919,7 +919,7 @@ alpha_legitimate_address_p (machine_mode mode, rtx x, bool strict)
x = XEXP (x, 0); x = XEXP (x, 0);
/* Discard non-paradoxical subregs. */ /* Discard non-paradoxical subregs. */
if (GET_CODE (x) == SUBREG if (SUBREG_P (x)
&& (GET_MODE_SIZE (GET_MODE (x)) && (GET_MODE_SIZE (GET_MODE (x))
< GET_MODE_SIZE (GET_MODE (SUBREG_REG (x))))) < GET_MODE_SIZE (GET_MODE (SUBREG_REG (x)))))
x = SUBREG_REG (x); x = SUBREG_REG (x);
...@@ -953,7 +953,7 @@ alpha_legitimate_address_p (machine_mode mode, rtx x, bool strict) ...@@ -953,7 +953,7 @@ alpha_legitimate_address_p (machine_mode mode, rtx x, bool strict)
x = XEXP (x, 0); x = XEXP (x, 0);
/* Discard non-paradoxical subregs. */ /* Discard non-paradoxical subregs. */
if (GET_CODE (x) == SUBREG if (SUBREG_P (x)
&& (GET_MODE_SIZE (GET_MODE (x)) && (GET_MODE_SIZE (GET_MODE (x))
< GET_MODE_SIZE (GET_MODE (SUBREG_REG (x))))) < GET_MODE_SIZE (GET_MODE (SUBREG_REG (x)))))
x = SUBREG_REG (x); x = SUBREG_REG (x);
......
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
(define_predicate "hard_fp_register_operand" (define_predicate "hard_fp_register_operand"
(match_operand 0 "register_operand") (match_operand 0 "register_operand")
{ {
if (GET_CODE (op) == SUBREG) if (SUBREG_P (op))
op = SUBREG_REG (op); op = SUBREG_REG (op);
return REGNO_REG_CLASS (REGNO (op)) == FLOAT_REGS; return REGNO_REG_CLASS (REGNO (op)) == FLOAT_REGS;
}) })
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
(define_predicate "hard_int_register_operand" (define_predicate "hard_int_register_operand"
(match_operand 0 "register_operand") (match_operand 0 "register_operand")
{ {
if (GET_CODE (op) == SUBREG) if (SUBREG_P (op))
op = SUBREG_REG (op); op = SUBREG_REG (op);
return REGNO_REG_CLASS (REGNO (op)) == GENERAL_REGS; return REGNO_REG_CLASS (REGNO (op)) == GENERAL_REGS;
}) })
...@@ -506,7 +506,7 @@ ...@@ -506,7 +506,7 @@
(define_special_predicate "any_memory_operand" (define_special_predicate "any_memory_operand"
(match_code "mem,reg,subreg") (match_code "mem,reg,subreg")
{ {
if (GET_CODE (op) == SUBREG) if (SUBREG_P (op))
op = SUBREG_REG (op); op = SUBREG_REG (op);
if (MEM_P (op)) if (MEM_P (op))
...@@ -537,7 +537,7 @@ ...@@ -537,7 +537,7 @@
(define_predicate "reg_not_elim_operand" (define_predicate "reg_not_elim_operand"
(match_operand 0 "register_operand") (match_operand 0 "register_operand")
{ {
if (GET_CODE (op) == SUBREG) if (SUBREG_P (op))
op = SUBREG_REG (op); op = SUBREG_REG (op);
return op != frame_pointer_rtx && op != arg_pointer_rtx; return op != frame_pointer_rtx && op != arg_pointer_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