From: Jeff Law Date: Tue, 21 Jul 1998 22:22:59 +0000 (-0600) Subject: rs6000.h (PREDICATE_CODES): Add CONSTANT_P_RTX. X-Git-Tag: prereleases/egcs-1.1-prerelease~188 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8a406fff8e53831207840267d7f1ee9432f2af7;p=thirdparty%2Fgcc.git rs6000.h (PREDICATE_CODES): Add CONSTANT_P_RTX. H * rs6000.h (PREDICATE_CODES): Add CONSTANT_P_RTX. * rs6000.md (movsi, movdi): Add CONSTANT_P_RTX. * rs6000.c (short_cint_operand): Add CONSTANT_P_RTX. (u_short_cint_operand): Same. (reg_or_cint_operand): Same. (logical_operand): Same. (input_operand): Same. (reg_or_short_operand): Use u_short_cint_operand. From-SVN: r21327 --- diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 9fe4bfa63193..5c3cda50a506 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -5415,7 +5415,8 @@ && !flag_pic && CONSTANT_P (operands[1]) && GET_CODE (operands[1]) != HIGH - && GET_CODE (operands[1]) != CONST_INT) + && GET_CODE (operands[1]) != CONST_INT + && GET_CODE (operands[1]) != CONSTANT_P_RTX) { rtx target = (reload_completed || reload_in_progress) ? operands[0] : gen_reg_rtx (SImode); @@ -5469,6 +5470,7 @@ if ((!TARGET_WINDOWS_NT || DEFAULT_ABI != ABI_NT) && CONSTANT_P (operands[1]) && GET_CODE (operands[1]) != CONST_INT + && GET_CODE (operands[1]) != CONSTANT_P_RTX && GET_CODE (operands[1]) != HIGH && ! LEGITIMATE_CONSTANT_POOL_ADDRESS_P (operands[1])) { @@ -6091,6 +6093,7 @@ && CONSTANT_P (operands[1]) #if HOST_BITS_PER_WIDE_INT == 32 && GET_CODE (operands[1]) != CONST_INT + && GET_CODE (operands[1]) != CONSTANT_P_RTX #endif && ! easy_fp_constant (operands[1], DImode) && ! LEGITIMATE_CONSTANT_POOL_ADDRESS_P (operands[1]))