Commit 839e636a by Iain Sandoe Committed by Iain Sandoe

[Darwin, X86, testsuite] Update tests for common section use.

The tests amended here now have different code-gen with default
options because, previously, the access were indirected per Darwin
ABI for common accesses.  The revised code-gen does not match the
expected scan-asms because Darwin defaults to fPIC.  For these tests,
it seems that the best solution is to use '-mdynamic-no-pic' in the
m32 case which makes the output similar to the ElF platform default.

gcc/testsuite/ChangeLog:

2019-11-22  Iain Sandoe  <iain@sandoe.co.uk>

	* gcc.target/i386/pr27971.c: Use mdynamic-no-pic for m32 on
	Darwin.
	* gcc.target/i386/sse2-load-multi.c: Likewise.
	* gcc.target/i386/sse2-store-multi.c: Likewise.

From-SVN: r278631
parent 037ec35a
2019-11-22 Iain Sandoe <iain@sandoe.co.uk>
* gcc.target/i386/pr27971.c: Use mdynamic-no-pic for m32 on
Darwin.
* gcc.target/i386/sse2-load-multi.c: Likewise.
* gcc.target/i386/sse2-store-multi.c: Likewise.
2019-11-22 Jakub Jelinek <jakub@redhat.com>
Implement P1920R1, Missing feature-test macros 2017-2019.
......
/* { dg-do compile } */
/* { dg-options "-O2 -mno-tbm" } */
/* { dg-additional-options "-mdynamic-no-pic" { target { *-*-darwin* && ia32 } } } */
unsigned array[4];
......@@ -16,3 +17,4 @@ unsigned foo(TYPE x)
/* { dg-final { scan-assembler-not "shr\[^\\n\]*2" } } */
/* { dg-final { scan-assembler "and\[^\\n\]*12" } } */
\ No newline at end of file
/* { dg-do compile } */
/* { dg-options "-march=corei7 -O2" } */
/* { dg-additional-options "-mdynamic-no-pic" { target { *-*-darwin* && ia32 } } } */
#include <emmintrin.h>
......
/* { dg-do compile } */
/* { dg-options "-march=corei7 -O2" } */
/* { dg-additional-options "-mdynamic-no-pic" { target { *-*-darwin* && ia32 } } } */
#include <emmintrin.h>
......
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