aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorHaochen Jiang <haochen.jiang@intel.com>2022-08-22 10:04:16 +0800
committerHaochen Jiang <haochen.jiang@intel.com>2022-08-23 11:08:25 +0800
commit9dcde45c2644df7d07cc89d646e59b68689ead3e (patch)
tree8a165b7f20618faada21f276eff2d0c5b843c642 /gcc
parentde6d9e0b3d5c08896cbf047b299fc7f8d1e42be7 (diff)
downloadgcc-9dcde45c2644df7d07cc89d646e59b68689ead3e.zip
gcc-9dcde45c2644df7d07cc89d646e59b68689ead3e.tar.gz
gcc-9dcde45c2644df7d07cc89d646e59b68689ead3e.tar.bz2
Add __m128bf16/__m256bf16/__m512bf16 type for bf16 abi test
Fix the abi test fail issue caused by type missing. gcc/testsuite/ChangeLog: * gcc.target/x86_64/abi/bf16/bf16-helper.h: Add _m128bf16/m256bf16/_m512bf16. * gcc.target/x86_64/abi/bf16/m512bf16/bf16-zmm-check.h: Include bf16-helper.h.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.target/x86_64/abi/bf16/bf16-helper.h4
-rw-r--r--gcc/testsuite/gcc.target/x86_64/abi/bf16/m512bf16/bf16-zmm-check.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/x86_64/abi/bf16/bf16-helper.h b/gcc/testsuite/gcc.target/x86_64/abi/bf16/bf16-helper.h
index 83d89fc..e090a72 100644
--- a/gcc/testsuite/gcc.target/x86_64/abi/bf16/bf16-helper.h
+++ b/gcc/testsuite/gcc.target/x86_64/abi/bf16/bf16-helper.h
@@ -1,3 +1,7 @@
+typedef __bf16 __m128bf16 __attribute__((__vector_size__(16), __aligned__(16)));
+typedef __bf16 __m256bf16 __attribute__((__vector_size__(32), __aligned__(32)));
+typedef __bf16 __m512bf16 __attribute__((__vector_size__(64), __aligned__(64)));
+
typedef union
{
float f;
diff --git a/gcc/testsuite/gcc.target/x86_64/abi/bf16/m512bf16/bf16-zmm-check.h b/gcc/testsuite/gcc.target/x86_64/abi/bf16/m512bf16/bf16-zmm-check.h
index 8379fcf..9cd39b8 100644
--- a/gcc/testsuite/gcc.target/x86_64/abi/bf16/m512bf16/bf16-zmm-check.h
+++ b/gcc/testsuite/gcc.target/x86_64/abi/bf16/m512bf16/bf16-zmm-check.h
@@ -1,4 +1,5 @@
#include <stdlib.h>
+#include "../bf16-helper.h"
static void do_test (void);