testsuite: Fix up amx* dg-do run tests with older binutils
authorJakub Jelinek <jakub@redhat.com>
Wed, 30 Sep 2020 11:21:04 +0000 (13:21 +0200)
committerJakub Jelinek <jakub@redhat.com>
Wed, 30 Sep 2020 11:21:04 +0000 (13:21 +0200)
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  <jakub@redhat.com>

* 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.

gcc/testsuite/gcc.target/i386/amxbf16-dpbf16ps-2.c
gcc/testsuite/gcc.target/i386/amxint8-dpbssd-2.c
gcc/testsuite/gcc.target/i386/amxint8-dpbsud-2.c
gcc/testsuite/gcc.target/i386/amxint8-dpbusd-2.c
gcc/testsuite/gcc.target/i386/amxint8-dpbuud-2.c
gcc/testsuite/gcc.target/i386/amxtile-2.c

index c819113897d2baeab1628fba8f213493fec12f8d..349ec58ada2b8793b99c4547059b068f19a61a6c 100644 (file)
@@ -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 <immintrin.h>
 
index 62d31ce3e81853059d12c9f77b075d944de9c9ce..74ad71be5c5c504c9d1c9548373fa265653d9d73 100644 (file)
@@ -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 <immintrin.h>
 
index 5007ee917f56a34c3e27aa5c3465252b2c080c73..e7241bdd860a7febe950a1a90ad158201b553fd5 100644 (file)
@@ -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 <immintrin.h>
 
index 17888e26116497d50c15a476060603c047cc1338..f0b9f97aec92cf20517554cb85387e85b8ba1fad 100644 (file)
@@ -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 <immintrin.h>
 
index c39666c3643a320bb2d22246dac5627abd99b959..eb70b2f9259d05bd598c2ebe32ec3fa57140d524 100644 (file)
@@ -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 <immintrin.h>
 
index cef84f9f479ac4880de2c8299f77099d45b201ba..1f4138e6f8c7a2357be8661503041ed57fc6321a 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do run { target { ! ia32 } } } */
+/* { dg-require-effective-target amx_tile } */
 /* { dg-options "-O2 -mamx-tile " } */
 #include <immintrin.h>