From: hp Date: Tue, 8 May 2012 15:20:52 +0000 (+0000) Subject: PR target/53272 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=826e3285f24b761d7d62f2a2d8f54f11a26bb0d8;p=thirdparty%2Fgcc.git PR target/53272 * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32, when a constant source operand matches an "I" constraint, the "no CC0 change" applies to a register-destination only, not a strict_low_part-destination. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187283 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b71e988e1003..4867d5dc5a44 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2012-05-08 Hans-Peter Nilsson + + PR target/53272 + * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32, + when a constant source operand matches an "I" constraint, the "no + CC0 change" applies to a register-destination only, not a + strict_low_part-destination. + 2012-05-08 Richard Guenther * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2 diff --git a/gcc/config/cris/cris.c b/gcc/config/cris/cris.c index 40efd233ebfd..349f6019e3e9 100644 --- a/gcc/config/cris/cris.c +++ b/gcc/config/cris/cris.c @@ -1695,6 +1695,7 @@ cris_normal_notice_update_cc (rtx exp, rtx insn) && (REGNO (SET_SRC (exp)) > CRIS_LAST_GENERAL_REGISTER)) || (TARGET_V32 + && REG_P (SET_DEST (exp)) && satisfies_constraint_I (SET_SRC (exp)))) { /* There's no CC0 change for this case. Just check