From: Jakub Jelinek Date: Wed, 30 Sep 2020 11:21:04 +0000 (+0200) Subject: testsuite: Fix up amx* dg-do run tests with older binutils X-Git-Tag: basepoints/gcc-12~4708 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7d131029918a8b8fb8676f1cc17af21b78907abf;p=thirdparty%2Fgcc.git testsuite: Fix up amx* dg-do run tests with older binutils These tests were missing dg-requires-effective-targets to ensure they are UNSUPPORTED if the assembler doesn't have AMX support. 2020-09-30 Jakub Jelinek * gcc.target/i386/amxint8-dpbssd-2.c: Require effective targets amx_tile and amx_int8. * gcc.target/i386/amxint8-dpbsud-2.c: Likewise. * gcc.target/i386/amxint8-dpbusd-2.c: Likewise. * gcc.target/i386/amxint8-dpbuud-2.c: Likewise. * gcc.target/i386/amxbf16-dpbf16ps-2.c: Require effective targets amx_tile and amx_bf16. * gcc.target/i386/amxtile-2.c: Require effective target amx_tile. --- diff --git a/gcc/testsuite/gcc.target/i386/amxbf16-dpbf16ps-2.c b/gcc/testsuite/gcc.target/i386/amxbf16-dpbf16ps-2.c index c819113897d2..349ec58ada2b 100644 --- a/gcc/testsuite/gcc.target/i386/amxbf16-dpbf16ps-2.c +++ b/gcc/testsuite/gcc.target/i386/amxbf16-dpbf16ps-2.c @@ -1,4 +1,6 @@ /* { dg-do run { target { ! ia32 } } } */ +/* { dg-require-effective-target amx_tile } */ +/* { dg-require-effective-target amx_bf16 } */ /* { dg-options "-O2 -mamx-tile -mamx-bf16" } */ #include diff --git a/gcc/testsuite/gcc.target/i386/amxint8-dpbssd-2.c b/gcc/testsuite/gcc.target/i386/amxint8-dpbssd-2.c index 62d31ce3e818..74ad71be5c5c 100644 --- a/gcc/testsuite/gcc.target/i386/amxint8-dpbssd-2.c +++ b/gcc/testsuite/gcc.target/i386/amxint8-dpbssd-2.c @@ -1,4 +1,6 @@ /* { dg-do run { target { ! ia32 } } } */ +/* { dg-require-effective-target amx_tile } */ +/* { dg-require-effective-target amx_int8 } */ /* { dg-options "-O2 -mamx-tile -mamx-int8" } */ #include diff --git a/gcc/testsuite/gcc.target/i386/amxint8-dpbsud-2.c b/gcc/testsuite/gcc.target/i386/amxint8-dpbsud-2.c index 5007ee917f56..e7241bdd860a 100644 --- a/gcc/testsuite/gcc.target/i386/amxint8-dpbsud-2.c +++ b/gcc/testsuite/gcc.target/i386/amxint8-dpbsud-2.c @@ -1,4 +1,6 @@ /* { dg-do run { target { ! ia32 } } } */ +/* { dg-require-effective-target amx_tile } */ +/* { dg-require-effective-target amx_int8 } */ /* { dg-options "-O2 -mamx-tile -mamx-int8" } */ #include diff --git a/gcc/testsuite/gcc.target/i386/amxint8-dpbusd-2.c b/gcc/testsuite/gcc.target/i386/amxint8-dpbusd-2.c index 17888e261164..f0b9f97aec92 100644 --- a/gcc/testsuite/gcc.target/i386/amxint8-dpbusd-2.c +++ b/gcc/testsuite/gcc.target/i386/amxint8-dpbusd-2.c @@ -1,4 +1,6 @@ /* { dg-do run { target { ! ia32 } } } */ +/* { dg-require-effective-target amx_tile } */ +/* { dg-require-effective-target amx_int8 } */ /* { dg-options "-O2 -mamx-tile -mamx-int8" } */ #include diff --git a/gcc/testsuite/gcc.target/i386/amxint8-dpbuud-2.c b/gcc/testsuite/gcc.target/i386/amxint8-dpbuud-2.c index c39666c3643a..eb70b2f9259d 100644 --- a/gcc/testsuite/gcc.target/i386/amxint8-dpbuud-2.c +++ b/gcc/testsuite/gcc.target/i386/amxint8-dpbuud-2.c @@ -1,4 +1,6 @@ /* { dg-do run { target { ! ia32 } } } */ +/* { dg-require-effective-target amx_tile } */ +/* { dg-require-effective-target amx_int8 } */ /* { dg-options "-O2 -mamx-tile -mamx-int8" } */ #include diff --git a/gcc/testsuite/gcc.target/i386/amxtile-2.c b/gcc/testsuite/gcc.target/i386/amxtile-2.c index cef84f9f479a..1f4138e6f8c7 100644 --- a/gcc/testsuite/gcc.target/i386/amxtile-2.c +++ b/gcc/testsuite/gcc.target/i386/amxtile-2.c @@ -1,4 +1,5 @@ /* { dg-do run { target { ! ia32 } } } */ +/* { dg-require-effective-target amx_tile } */ /* { dg-options "-O2 -mamx-tile " } */ #include