Fix tdpbf16ps testcase
authorHaochen Jiang <haochen.jiang@intel.com>
Fri, 24 Dec 2021 05:55:06 +0000 (13:55 +0800)
committerliuhongt <hongtao.liu@intel.com>
Tue, 28 Dec 2021 08:58:27 +0000 (16:58 +0800)
commit472568f5d89eddbfcaff3887dab2a6c4c7fb8d84
tree9c06f95b028f1c007d9f1c2652586a5ab69b4317
parentd1e111daee511e9831e6f8c4253170c8b21885cd
Fix tdpbf16ps testcase

gcc/testsuite/ChangeLog:

* gcc.target/i386/amx-check.h (check_float_tile_register):
New check function for float to prevent precision loss.
* gcc.target/i386/amxbf16-dpbf16ps-2.c: Correct the type convert
and byte offset. Use the new check function.
gcc/testsuite/gcc.target/i386/amx-check.h
gcc/testsuite/gcc.target/i386/amxbf16-dpbf16ps-2.c