From: Uros Bizjak Date: Sat, 20 Aug 2011 11:05:43 +0000 (+0200) Subject: i386.c (ix86_binary_operator_ok): Use satisfies_constraint_L. X-Git-Tag: releases/gcc-4.7.0~4355 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f0cac80bf6b56e75a1fbafc4a0e077272fa03311;p=thirdparty%2Fgcc.git i386.c (ix86_binary_operator_ok): Use satisfies_constraint_L. * config/i386/i386.c (ix86_binary_operator_ok): Use satisfies_constraint_L. From-SVN: r177928 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e72be3889361..2217302f6433 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-08-20 Uros Bizjak + + * config/i386/i386.c (ix86_binary_operator_ok): Use + satisfies_constraint_L. + 2011-08-20 Uros Bizjak Michael Matz diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index bdcbd26538ff..7b7ac8746ab7 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -15787,16 +15787,12 @@ ix86_binary_operator_ok (enum rtx_code code, enum machine_mode mode, /* Source 1 cannot be a non-matching memory. */ if (MEM_P (src1) && !rtx_equal_p (dst, src1)) - { - /* Support "andhi/andsi/anddi" as a zero-extending move. */ - return (code == AND - && (mode == HImode - || mode == SImode - || (TARGET_64BIT && mode == DImode)) - && CONST_INT_P (src2) - && (INTVAL (src2) == 0xff - || INTVAL (src2) == 0xffff)); - } + /* Support "andhi/andsi/anddi" as a zero-extending move. */ + return (code == AND + && (mode == HImode + || mode == SImode + || (TARGET_64BIT && mode == DImode)) + && satisfies_constraint_L (src2)); return true; }