PR target/90552
* config/i386/i386.c (gen_rtx_cost):
Use ix86_tune_cost instead of ix86_cost.
testsuite/ChangeLog:
PR target/90552
* gcc.target/i386/pr90552.c: New test.
From-SVN: r271576
+2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
+
+ PR target/90552
+ * config/i386/i386.c (gen_rtx_cost):
+ Use ix86_tune_cost instead of ix86_cost.
+
2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
Michael Meissner <meissner@linux.ibm.com>
Segher Boessenkool <segher@kernel.crashing.org>
rtx mask;
enum rtx_code code = GET_CODE (x);
enum rtx_code outer_code = (enum rtx_code) outer_code_i;
- const struct processor_costs *cost = speed ? ix86_cost : &ix86_size_cost;
+ const struct processor_costs *cost
+ = speed ? ix86_tune_cost : &ix86_size_cost;
int src_cost;
switch (code)
+2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
+
+ PR target/90552
+ * gcc.target/i386/pr90552.c: New test.
+
2019-05-23 Mark Eggleston <mark.eggleston@codethink.com>
* gfortran.dg/fmt_f_default_field_width_1.f90: Hide REAL(16) behind
--- /dev/null
+/* PR target/90552 *
+/* { dg-do compile } */
+/* { dg-options "-Os" } */
+
+__attribute__((optimize(2)))
+int foo (int x)
+{
+ return x / 3;
+}
+
+/* { dg-final { scan-assembler-not "idiv" } } */