PR target/89848
* config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
Also process XEXP (src, 0) of a shift insn.
testsuite/ChangeLog:
PR target/89848
* gcc.target/i386/pr89848.c: New test.
From-SVN: r270003
+2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
+
+ PR target/89848
+ * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
+ Also process XEXP (src, 0) of a shift insn.
+
2019-03-28 David Malcolm <dmalcolm@redhat.com>
PR middle-end/89725
|| GET_CODE (src) == LSHIFTRT)
&& !CONST_INT_P (XEXP (src, 1))
&& reg_or_subregno (XEXP (src, 1)) == regno)
- XEXP (src, 1) = vreg;
+ {
+ XEXP (src, 0) = replace_with_subreg (XEXP (src, 0), reg, reg);
+ XEXP (src, 1) = vreg;
+ }
}
else
replace_with_subreg_in_insn (insn, reg, vreg);
+2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
+
+ PR target/89848
+ * gcc.target/i386/pr89848.c: New test.
+
2019-03-28 Marek Polacek <polacek@redhat.com>
PR c++/89836 - bool constant expression and explicit conversions.
--- /dev/null
+/* PR target/89848 */
+/* { dg-do compile { target ia32 } } */
+/* { dg-options "-O2 -msse2 -mtune=pentium3m" } */
+
+long long
+foo (long long x)
+{
+ x >>= 3;
+ x <<= x;
+ return x;
+}