darwin, x86, testsuite - Match codegen
authorIain Sandoe <iain@sandoe.co.uk>
Mon, 27 May 2019 20:06:22 +0000 (20:06 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Mon, 27 May 2019 20:06:22 +0000 (20:06 +0000)
For this test, we can match the codegen expected in the scan-asms
by avoiding the extra indirection that's mandated by the ABI for
common access and by using -mdynamic-no-pic for the 32b case.

gcc/testsuite/

2019-05-27  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.target/i386/pr22076.c: Adjust options to
match codegen expected by the scan-asms.

From-SVN: r271670

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr22076.c

index bed4287289f90ac71cba823ce02f11eceb52de73..89f20847160345953a6c3916b58b679f05d68979 100644 (file)
@@ -1,3 +1,8 @@
+2019-05-27  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * gcc.target/i386/pr22076.c: Adjust options to
+       match codegen expected by the scan-asms.
+
 2019-05-27  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gnat.dg/specs/array4.ads: New test.
index 6ce7696f237eb217b449385adfcad074423ee0fb..427ffcd4920a0dcd62dd9eaa98abd289296c2ad3 100644 (file)
@@ -1,5 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fomit-frame-pointer -mmmx -mno-sse2" } */
+/* { dg-additional-options "-fno-common" { target *-*-darwin* } } */
+/* { dg-additional-options "-mdynamic-no-pic" { target { ia32 && *-*-darwin* } } } */
 
 #include <mmintrin.h>