]> granicus.if.org Git - clang/commit
Adding front-end support to several intrinsics (bit scanning, conversion and state...
authorMichael Zuckerman <Michael.zuckerman@intel.com>
Wed, 1 Jun 2016 12:21:00 +0000 (12:21 +0000)
committerMichael Zuckerman <Michael.zuckerman@intel.com>
Wed, 1 Jun 2016 12:21:00 +0000 (12:21 +0000)
commit17ed5983fe6880b1c3530e2431001674d6e1b911
treee691b268d9ef449e64e71382c1995af39009c86e
parent898f4f7b8090eed665970058ff4671eaf243759c
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
include/clang/Basic/BuiltinsX86.def
lib/Headers/avxintrin.h
lib/Headers/ia32intrin.h
lib/Headers/immintrin.h
test/CodeGen/avx-builtins.c
test/CodeGen/bitscan-builtins.c [new file with mode: 0644]
test/CodeGen/rd-builtins.c [new file with mode: 0644]