Commit 67779f74 by H.J. Lu Committed by H.J. Lu

Compile pr79793-[12].c with -mtune=generic

pr79793-1.c and pr79793-2.c are failed when GCC is configured with
--with-cpu=slm since lea is used to adjust stack, instead of sub/add.
This patch uses -mtune=generic to always generate sub and add.

	* gcc.target/i386/pr79793-1.c: Compile with -mtune=generic.
	* gcc.target/i386/pr79793-2.c: Likewise.

From-SVN: r250745
parent 4ab033db
2017-07-31 H.J. Lu <hongjiu.lu@intel.com>
* gcc.target/i386/pr79793-1.c: Compile with -mtune=generic.
* gcc.target/i386/pr79793-2.c: Likewise.
2017-07-31 Uros Bizjak <ubizjak@gmail.com> 2017-07-31 Uros Bizjak <ubizjak@gmail.com>
PR target/25967 PR target/25967
......
/* { dg-do compile { target { *-*-linux* && { ! ia32 } } } } */ /* { dg-do compile { target { *-*-linux* && { ! ia32 } } } } */
/* { dg-options "-O2 -mgeneral-regs-only" } */ /* { dg-options "-O2 -mgeneral-regs-only -mtune=generic" } */
void void
__attribute__ ((interrupt)) __attribute__ ((interrupt))
......
/* { dg-do compile { target { *-*-linux* && { ! ia32 } } } } */ /* { dg-do compile { target { *-*-linux* && { ! ia32 } } } } */
/* { dg-options "-O2 -mgeneral-regs-only" } */ /* { dg-options "-O2 -mgeneral-regs-only -mtune=generic" } */
typedef unsigned int uword_t __attribute__ ((mode (__word__))); typedef unsigned int uword_t __attribute__ ((mode (__word__)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment