* config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
ashl<mode>3_mask, *<shift_insn><mode>3_mask and
*<rotate_insn><mode>3_mask in i386.md.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197362
138bc75d-0d04-0410-961f-
82ee72b054a4
+2013-04-02 Wei Mi <wmi@google.com>
+
+ * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
+ ashl<mode>3_mask, *<shift_insn><mode>3_mask and
+ *<rotate_insn><mode>3_mask in i386.md.
+
2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
* config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
{
if (CONST_INT_P (XEXP (x, 1)))
*total = cost->shift_const;
+ else if (GET_CODE (XEXP (x, 1)) == SUBREG
+ && GET_CODE (XEXP (XEXP (x, 1), 0)) == AND)
+ {
+ /* Return the cost after shift-and truncation. */
+ *total = cost->shift_var;
+ return true;
+ }
else
*total = cost->shift_var;
}