Darwin, X86, testsuite: Fix pr87767 tests for Darwin.
The tests assume non-PIC for m32 (which means that they fail on default PIC targets, like Darwin). There is also a missing space before the closing '}' on one of the dg-require-effective-target which means that test fails on machines without avx512f. gcc/testsuite/ChangeLog: * gcc.target/i386/avx512f-broadcast-pr87767-1.c: Make the test run as non-dynamic for m32 Darwin. * gcc.target/i386/avx512f-broadcast-pr87767-3.c: Likewise. * gcc.target/i386/avx512f-broadcast-pr87767-5.c: Likewise. * gcc.target/i386/avx512f-broadcast-pr87767-7.c: Likewise. * gcc.target/i386/avx512vl-broadcast-pr87767-1.c: Likewise. * gcc.target/i386/avx512vl-broadcast-pr87767-3.c: Likewise. * gcc.target/i386/avx512vl-broadcast-pr87767-5.c: Likewise. * gcc.target/i386/avx512f-broadcast-pr87767-6.c: Adjust dg-requires clause.
This commit is contained in:
parent
e9fdb9a732
commit
0a3e6e975a
8 changed files with 8 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
/* PR target/87767 */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2 -mavx512f -mavx512dq" } */
|
||||
/* { dg-additional-options "-mdynamic-no-pic" { target { *-*-darwin* && ia32 } } }
|
||||
/* { dg-final { scan-assembler-times "\[^\n\]*\\\{1to8\\\}" 5 } } */
|
||||
/* { dg-final { scan-assembler-times "\[^\n\]*\\\{1to16\\\}" 5 } } */
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* PR target/87767 */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2 -mavx512f" } */
|
||||
/* { dg-additional-options "-mdynamic-no-pic" { target { *-*-darwin* && ia32 } } }
|
||||
/* { dg-final { scan-assembler-times "\[^\n\]*\\\{1to8\\\}" 4 } } */
|
||||
/* { dg-final { scan-assembler-times "\[^\n\]*\\\{1to16\\\}" 4 } } */
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* PR target/87767 */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2 -mavx512f" } */
|
||||
/* { dg-additional-options "-mdynamic-no-pic" { target { *-*-darwin* && ia32 } } }
|
||||
/* { dg-final { scan-assembler-times "\[^n\n\]*\\\{1to8\\\}" 4 } } */
|
||||
/* { dg-final { scan-assembler-times "\[^n\n\]*\\\{1to16\\\}" 4 } } */
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* PR target/87767 */
|
||||
/* { dg-do run } */
|
||||
/* { dg-options "-O2 -mavx512f" } */
|
||||
/* { dg-require-effective-target avx512f} */
|
||||
/* { dg-require-effective-target avx512f } */
|
||||
|
||||
#include "avx512f-helper.h"
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* PR target/87767 */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2 -mavx512f -mavx512vl" } */
|
||||
/* { dg-additional-options "-mdynamic-no-pic" { target { *-*-darwin* && ia32 } } }
|
||||
/* { dg-final { scan-assembler-times "vadd\[^\n\]*\\\{1to2\\\}" 1 } } */
|
||||
/* { dg-final { scan-assembler-times "vadd\[^\n\]*\\\{1to4\\\}" 2 } } */
|
||||
/* { dg-final { scan-assembler-times "vadd\[^\n\]*\\\{1to8\\\}" 2 } } */
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* PR target/87767 */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2 -mavx512f -mavx512vl -mavx512dq" } */
|
||||
/* { dg-additional-options "-mdynamic-no-pic" { target { *-*-darwin* && ia32 } } }
|
||||
/* { dg-final { scan-assembler-times "\[^\n\]*\\\{1to2\\\}" 5 } } */
|
||||
/* { dg-final { scan-assembler-times "\[^\n\]*\\\{1to4\\\}" 10 } } */
|
||||
/* { dg-final { scan-assembler-times "\[^\n\]*\\\{1to8\\\}" 5 } } */
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* PR target/87767 */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2 -mavx512f -mavx512vl" } */
|
||||
/* { dg-additional-options "-mdynamic-no-pic" { target { *-*-darwin* && ia32 } } }
|
||||
/* { dg-final { scan-assembler-times "\[^\n\]*\\\{1to2\\\}" 4 } } */
|
||||
/* { dg-final { scan-assembler-times "\[^\n\]*\\\{1to4\\\}" 8 } } */
|
||||
/* { dg-final { scan-assembler-times "\[^\n\]*\\\{1to8\\\}" 4 } } */
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* PR target/87767 */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2 -mavx512f -mavx512vl" } */
|
||||
/* { dg-additional-options "-mdynamic-no-pic" { target { *-*-darwin* && ia32 } } }
|
||||
/* { dg-final { scan-assembler-times "\[^\n\]*\\\{1to2\\\}" 4 } } */
|
||||
/* { dg-final { scan-assembler-times "\[^\n\]*\\\{1to4\\\}" 8 } } */
|
||||
/* { dg-final { scan-assembler-times "\[^\n\]*\\\{1to8\\\}" 4 } } */
|
||||
|
|
Loading…
Add table
Reference in a new issue