Index: config/alpha/alpha.c =================================================================== --- config/alpha/alpha.c (revision 223268) +++ config/alpha/alpha.c (working copy) @@ -1352,7 +1352,7 @@ alpha_legitimize_reload_address (rtx x, && REG_P (XEXP (x, 0)) && REGNO (XEXP (x, 0)) < FIRST_PSEUDO_REGISTER && REGNO_OK_FOR_BASE_P (REGNO (XEXP (x, 0))) - && GET_CODE (XEXP (x, 1)) == CONST_INT) + && CONST_INT_P (XEXP (x, 1))) { HOST_WIDE_INT val = INTVAL (XEXP (x, 1)); HOST_WIDE_INT low = ((val & 0xffff) ^ 0x8000) - 0x8000; @@ -1644,9 +1644,8 @@ alpha_preferred_reload_class(rtx x, enum reg_class return rclass; /* These sorts of constants we can easily drop to memory. */ - if (CONST_INT_P (x) - || GET_CODE (x) == CONST_WIDE_INT - || GET_CODE (x) == CONST_DOUBLE + if (CONST_SCALAR_INT_P (x) + || CONST_DOUBLE_P (x) || GET_CODE (x) == CONST_VECTOR) { if (rclass == FLOAT_REGS) @@ -2133,7 +2132,7 @@ alpha_legitimate_constant_p (machine_mode mode, rt case CONST: if (GET_CODE (XEXP (x, 0)) == PLUS - && GET_CODE (XEXP (XEXP (x, 0), 1)) == CONST_INT) + && CONST_INT_P (XEXP (XEXP (x, 0), 1))) x = XEXP (XEXP (x, 0), 0); else return true; @@ -3283,8 +3282,7 @@ alpha_split_tmode_pair (rtx operands[4], machine_m operands[2] = adjust_address (operands[1], DImode, 0); break; - case CONST_INT: - case CONST_WIDE_INT: + CASE_CONST_SCALAR_INT: case CONST_DOUBLE: gcc_assert (operands[1] == CONST0_RTX (mode)); operands[2] = operands[3] = const0_rtx; @@ -5257,9 +5255,7 @@ print_operand (FILE *file, rtx x, int code) case 'M': /* 'b', 'w', 'l', or 'q' as the value of the constant. */ - if (!CONST_INT_P (x) - || (INTVAL (x) != 8 && INTVAL (x) != 16 - && INTVAL (x) != 32 && INTVAL (x) != 64)) + if (!mode_width_operand (x, VOIDmode)) output_operand_lossage ("invalid %%M value"); fprintf (file, "%s", Index: config/alpha/alpha.md =================================================================== --- config/alpha/alpha.md (revision 223268) +++ config/alpha/alpha.md (working copy) @@ -4153,8 +4153,7 @@ /* We must put 64-bit constants in memory. We could keep the 32-bit constants in TImode and rely on the splitter, but this doesn't seem to be worth the pain. */ - else if (CONST_INT_P (operands[1]) - || GET_CODE (operands[1]) == CONST_WIDE_INT) + else if (CONST_SCALAR_INT_P (operands[1])) { rtx in[2], out[2], target; Index: config/alpha/constraints.md =================================================================== --- config/alpha/constraints.md (revision 223298) +++ config/alpha/constraints.md (working copy) @@ -97,7 +97,7 @@ (define_memory_constraint "Q" "@internal A normal_memory_operand" (and (match_code "mem") - (not (match_test "GET_CODE (XEXP (op, 0)) == AND")))) + (not (match_code "and" "0")))) (define_constraint "R" "@internal A direct_call_operand" Index: config/alpha/predicates.md =================================================================== --- config/alpha/predicates.md (revision 223298) +++ config/alpha/predicates.md (working copy) @@ -72,7 +72,7 @@ ;; Return 1 if the operand is a non-symbolic, nonzero constant operand. (define_predicate "non_zero_const_operand" (and (match_code "const_int,const_wide_int,const_double,const_vector") - (match_test "op != CONST0_RTX (mode)"))) + (not (match_test "op == CONST0_RTX (mode)")))) ;; Return 1 if OP is the constant 4 or 8. (define_predicate "const48_operand" @@ -150,8 +150,7 @@ ;; Return 1 if OP is a valid operand for the source of a move insn. (define_predicate "input_operand" - (match_code "label_ref,symbol_ref,const,high,reg,subreg,mem, - const_double,const_vector,const_int,const_wide_int") + (match_operand 0 "general_operand") { switch (GET_CODE (op)) { @@ -273,8 +272,8 @@ (define_predicate "call_operand" (ior (match_code "symbol_ref") (and (match_code "reg") - (ior (match_test "!TARGET_ABI_OSF") - (match_test "!HARD_REGISTER_P (op)") + (ior (not (match_test "TARGET_ABI_OSF")) + (not (match_test "HARD_REGISTER_P (op)")) (match_test "REGNO (op) == R27_REG"))))) ;; Return true if OP is a LABEL_REF, or SYMBOL_REF or CONST referencing @@ -371,10 +370,9 @@ (define_predicate "symbolic_operand" (ior (match_code "symbol_ref,label_ref") (and (match_code "const") - (match_test "GET_CODE (XEXP (op,0)) == PLUS - && (GET_CODE (XEXP (XEXP (op,0), 0)) == SYMBOL_REF - || GET_CODE (XEXP (XEXP (op,0), 0)) == LABEL_REF) - && CONST_INT_P (XEXP (XEXP (op,0), 1))")))) + (match_code "plus" "0") + (match_code "symbol_ref,label_ref" "00") + (match_code "const_int" "01")))) ;; Return true if OP is valid for 16-bit DTP relative relocations. (define_predicate "dtp16_symbolic_operand"