re PR target/90552 (attribute((optimize(3))) not overriding -Os)
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
This commit is contained in:
parent
9111760356
commit
103d91c7cb
4 changed files with 24 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
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>
|
||||
|
|
|
@ -19124,7 +19124,8 @@ ix86_rtx_costs (rtx x, machine_mode mode, int outer_code_i, int opno,
|
|||
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)
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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
|
||||
|
|
11
gcc/testsuite/gcc.target/i386/pr90552.c
Normal file
11
gcc/testsuite/gcc.target/i386/pr90552.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
/* 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" } } */
|
Loading…
Add table
Reference in a new issue