]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite, X86, Darwin: 64bit Darwin does not support non-PIC code.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 3 May 2026 14:18:52 +0000 (15:18 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Mon, 4 May 2026 13:55:32 +0000 (14:55 +0100)
Making good portable function-body scan tests can be challenging.

In addition to assembler syntax and ABI differences, one also needs to
account for platform constraints.  In some cases, we hope to automate
common comparisons - but there are limits to what is feasible.

64Bit Darwin does not support non-PIC code on any platform and so some
of the x86 function b0dy scan tests which are expecting the ELF default
produce code which is too different to be realistically handled with
conditional matches.

We are just going to skip tests in this category.

gcc/testsuite/ChangeLog:

* gcc.target/i386/builtin-memmove-12.c: Skip for Darwin.
* gcc.target/i386/memcpy-pr120683-2.c: Likewise.
* gcc.target/i386/memcpy-pr120683-3.c: Likewise.
* gcc.target/i386/memcpy-pr120683-4.c: Likewise.
* gcc.target/i386/memcpy-pr120683-5.c: Likewise.
* gcc.target/i386/memcpy-pr120683-6.c: Likewise.
* gcc.target/i386/memcpy-pr120683-7.c: Likewise.
* gcc.target/i386/memset-pr120683-13.c: Likewise.
* gcc.target/i386/memset-pr120683-17.c: Likewise.
* gcc.target/i386/memset-pr120683-18.c: Likewise.
* gcc.target/i386/memset-pr120683-19.c: Likewise.
* gcc.target/i386/memset-pr120683-22.c: Likewise.
* gcc.target/i386/memset-pr120683-23.c: Likewise.
* gcc.target/i386/memset-pr70308-1b.c: Likewise.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
14 files changed:
gcc/testsuite/gcc.target/i386/builtin-memmove-12.c
gcc/testsuite/gcc.target/i386/memcpy-pr120683-2.c
gcc/testsuite/gcc.target/i386/memcpy-pr120683-3.c
gcc/testsuite/gcc.target/i386/memcpy-pr120683-4.c
gcc/testsuite/gcc.target/i386/memcpy-pr120683-5.c
gcc/testsuite/gcc.target/i386/memcpy-pr120683-6.c
gcc/testsuite/gcc.target/i386/memcpy-pr120683-7.c
gcc/testsuite/gcc.target/i386/memset-pr120683-13.c
gcc/testsuite/gcc.target/i386/memset-pr120683-17.c
gcc/testsuite/gcc.target/i386/memset-pr120683-18.c
gcc/testsuite/gcc.target/i386/memset-pr120683-19.c
gcc/testsuite/gcc.target/i386/memset-pr120683-22.c
gcc/testsuite/gcc.target/i386/memset-pr120683-23.c
gcc/testsuite/gcc.target/i386/memset-pr70308-1b.c

index 3180a7ecc67981ff05c79b2c6ab7721d745135e5..661f23e189ce9cf7b7c02d558cea22dcedb5cded 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-skip-if "64b Darwin does not support non-PIC" *-*-darwin* } */
 /* { dg-options "-O2 -mno-avx -msse2 -mtune=generic" } */
 /* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
index 3b48f45e579e2109dce75345530b37e0329b462d..15f0e4b9e6261c4e65f24dbcb36f1338be5cacb9 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-skip-if "64b Darwin does not support non-PIC" *-*-darwin* } */
 /* { dg-options "-O2 -march=x86-64 -mmemcpy-strategy=vector_loop:2048:noalign,libcall:-1:noalign -fno-pie" } */
 /* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
index f30899a86f6717114ba05761939eb3a3f3bc2f8f..0f6c8f5afb72a8311393fd91f8bcddb1a62568b8 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-skip-if "64b Darwin does not support non-PIC" *-*-darwin* } */
 /* { dg-options "-O2 -march=x86-64 -mmemcpy-strategy=vector_loop:2048:noalign,libcall:-1:noalign -fno-pie" } */
 /* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
index 1d53e12dc26d5bf8eb15c041a3a9971e0214bae6..963e966d7718502cfd59abba7834e618458fd632 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-skip-if "64b Darwin does not support non-PIC" *-*-darwin* } */
 /* { dg-options "-O2 -march=x86-64-v3 -mmemcpy-strategy=vector_loop:2048:noalign,libcall:-1:noalign -fno-pie" } */
 /* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
index b445e3b8ea484a0ec0e1f923d6ae7fc6ae17bcc7..cd24d6bd00bd26d976d3e976aaa6acaa65dc9751 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-skip-if "64b Darwin does not support non-PIC" *-*-darwin* } */
 /* { dg-options "-O2 -march=x86-64-v3 -mmemcpy-strategy=vector_loop:2048:noalign,libcall:-1:noalign -fno-pie" } */
 /* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
index b9bf05c2908a88d037c2d627192e97e1fd8495a6..a2bf5cc8d95bdae49244c9cae581d9427afa4015 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-skip-if "64b Darwin does not support non-PIC" *-*-darwin* } */
 /* { dg-options "-O2 -march=x86-64-v4 -mmemcpy-strategy=vector_loop:2048:noalign,libcall:-1:noalign -fno-pie" } */
 /* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
index ce023619a0729b0a8061d3148edc3d19d991b137..b67166b42c5dede3a2ab3da924409600197bf5dc 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-skip-if "64b Darwin does not support non-PIC" *-*-darwin* } */
 /* { dg-options "-O2 -march=x86-64-v4 -mmemcpy-strategy=vector_loop:2048:noalign,libcall:-1:noalign -fno-pie" } */
 /* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
index 0b98be8217aba332c8ffc73da059c0646e52cba5..8663a78a92ce4935f8f8e4b87ef444dd4d83eed2 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-skip-if "64b Darwin does not support non-PIC" *-*-darwin* } */
 /* { dg-options "-O2 -march=x86-64 -mmemset-strategy=vector_loop:256:noalign,libcall:-1:noalign -fno-pie" } */
 /* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
index 535bf5700334c7f716aeeb2f63e9c7d76147dfd0..9657378e6a6fbc669d6a6ad923bf555d449d42c6 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-skip-if "64b Darwin does not support non-PIC" *-*-darwin* } */
 /* { dg-options "-O2 -march=x86-64 -mmemset-strategy=vector_loop:256:noalign,libcall:-1:noalign -fno-pie" } */
 /* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
index f05e6fb06bb694a29ed6d7a909e4eb3b4a435b76..dbead6ef58595d8c8475e49c1f7167561841705e 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-skip-if "64b Darwin does not support non-PIC" *-*-darwin* } */
 /* { dg-options "-O2 -march=x86-64 -mmemset-strategy=vector_loop:256:noalign,libcall:-1:noalign -fno-pie" } */
 /* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
index 4d8dd5214d8f595938595ba63abbda836862da78..f9777e57c54f77fcf759d395398673ba358a2487 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-skip-if "64b Darwin does not support non-PIC" *-*-darwin* } */
 /* { dg-options "-O2 -march=x86-64 -mmemset-strategy=vector_loop:256:noalign,libcall:-1:noalign -fno-pie" } */
 /* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
index a79bbe11f4089a2bfb52c51ed2d1bea362c9f530..475c1e2dd6fd88655f14013214f9cd381c3544ea 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile { target { ! ia32 } } } */
+/* { dg-skip-if "64b Darwin does not support non-PIC" *-*-darwin* } */
 /* { dg-options "-O2 -march=x86-64 -mmemset-strategy=rep_8byte:8192:align,libcall:-1:noalign -fno-pie" } */
 /* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
index 7e0d8441daec7a64e7685df9dd89066dbc4c8e70..113ddd3c39df22dc5c80e689fa2df0d40b801f5a 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-skip-if "64b Darwin does not support non-PIC" *-*-darwin* } */
 /* { dg-options "-O2 -march=x86-64 -minline-all-stringops -mmemset-strategy=vector_loop:256:noalign,libcall:-1:noalign -fno-pie" } */
 /* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */
index bd53f246069265a16992ee76342caafb597be502..b951f6fe7a058e459d292349b761d5ef495680ae 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-skip-if "64b Darwin does not support non-PIC" *-*-darwin* } */
 /* { dg-options "-O2 -march=x86-64 -fomit-frame-pointer -DUSE_SCANF -fno-stack-protector" } */
 /* { dg-add-options check_function_bodies } */
 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc').  */