diff options
author | Michael Zuckerman <Michael.zuckerman@intel.com> | 2016-06-01 12:21:00 +0000 |
---|---|---|
committer | Michael Zuckerman <Michael.zuckerman@intel.com> | 2016-06-01 12:21:00 +0000 |
commit | 17ed5983fe6880b1c3530e2431001674d6e1b911 (patch) | |
tree | e691b268d9ef449e64e71382c1995af39009c86e /lib/Headers/ia32intrin.h | |
parent | 898f4f7b8090eed665970058ff4671eaf243759c (diff) |
Adding front-end support to several intrinsics (bit scanning, conversion and state reading intrinsics)
Adding LLVM front-end support to two intrinsics dealing with bit scan: _bit_scan_forward and _bit_scan_reverse.
Their functionality is as described in Intel intrinsics guide:
https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_bit_scan_forward&expand=371,370
https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_bit_scan_reverse&expand=371,370
Furthermore, adding clang front-end support to these conversion intrinsics: _mm256_cvtsd_f64, _mm256_cvtsi256_si32 and _mm256_cvtss_f32.
Finally, adding tests to all of the above, as well as to the state reading intrinsics _rdpmc and _rdtsc.
Their functionality is also specified in the Intel intrinsics guide.
Commit on behalf of Omer Paparo Bivas
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@271387 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Headers/ia32intrin.h')
-rw-r--r-- | lib/Headers/ia32intrin.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Headers/ia32intrin.h b/lib/Headers/ia32intrin.h index b2f82bb59e..397f3fd13e 100644 --- a/lib/Headers/ia32intrin.h +++ b/lib/Headers/ia32intrin.h @@ -74,4 +74,6 @@ __rdtscp(unsigned int *__A) { #define _rdtsc() __rdtsc() +#define _rdpmc(A) __rdpmc(A) + #endif /* __IA32INTRIN_H */ |