diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2017-07-31 14:59:24 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2017-07-31 07:59:24 -0700 |
commit | 67779f742232506430930101187fddb47e564e5c (patch) | |
tree | d6a5dd75df2478e00c8a4d53761021bf94d544b2 /gcc | |
parent | 4ab033db415dfd8322d71604e4a9191700a07080 (diff) | |
download | gcc-67779f742232506430930101187fddb47e564e5c.zip gcc-67779f742232506430930101187fddb47e564e5c.tar.gz gcc-67779f742232506430930101187fddb47e564e5c.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr79793-1.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr79793-2.c | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7edb3a3..64d210d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +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> PR target/25967 diff --git a/gcc/testsuite/gcc.target/i386/pr79793-1.c b/gcc/testsuite/gcc.target/i386/pr79793-1.c index a382fe9..1cc67a8 100644 --- a/gcc/testsuite/gcc.target/i386/pr79793-1.c +++ b/gcc/testsuite/gcc.target/i386/pr79793-1.c @@ -1,5 +1,5 @@ /* { dg-do compile { target { *-*-linux* && { ! ia32 } } } } */ -/* { dg-options "-O2 -mgeneral-regs-only" } */ +/* { dg-options "-O2 -mgeneral-regs-only -mtune=generic" } */ void __attribute__ ((interrupt)) diff --git a/gcc/testsuite/gcc.target/i386/pr79793-2.c b/gcc/testsuite/gcc.target/i386/pr79793-2.c index f6ae5ae..e1e6463 100644 --- a/gcc/testsuite/gcc.target/i386/pr79793-2.c +++ b/gcc/testsuite/gcc.target/i386/pr79793-2.c @@ -1,5 +1,5 @@ /* { 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__))); |