Scalar version :
_mm_cvtsbh_ss , _mm_cvtness_sbh
Vector version:
_mm512_cvtpbh_ps , _mm256_cvtpbh_ps
_mm512_maskz_cvtpbh_ps , _mm256_maskz_cvtpbh_ps
_mm512_mask_cvtpbh_ps , _mm256_mask_cvtpbh_ps
Paths
| Differential D62363
[X86] Enable intrinsics that convert float and bf16 data to each other ClosedPublic Authored by skan on May 23 2019, 6:16 PM.
Details
Summary Scalar version : Vector version:
Diff Detail Event Timelinecraig.topper retitled this revision from Enable intrinsics that convert float and bf16 data to each other to [X86] Enable intrinsics that convert float and bf16 data to each other.May 23 2019, 10:52 PM
This revision is now accepted and ready to land.Jun 4 2019, 11:10 AM Comment Actions When target feature avx512bf16 is enabled, avx512vl is not enabled implicity for some reasons by now. But _mm_cvtness_sbh, _mm256_cvtpbh_ps , _mm256_maskz_cvtpbh_ps , _mm256_mask_cvtpbh_ps need avx512vl feature. So I move their definition from avx512bf16intrin to avx512vlbf16intrin.h, and move corresponding test cases from avx512bf16-builtins.c to avx512vlbf16-builtins.c. And the test for _mm_cvtness_sbh is fixed in the new patch. Comment Actions change mask paramater' s name from __M to __U in order to be consistent with other intrinsics in the file Closed by commit rL363018: [X86] Enable intrinsics that convert float and bf16 data to each other (authored by pengfei). · Explain WhyJun 10 2019, 6:16 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 201601 include/clang/Basic/BuiltinsX86.def
lib/CodeGen/CGBuiltin.cpp
lib/Headers/avx512bf16intrin.h
test/CodeGen/avx512bf16-builtins.c
|
Single Float Data