diff options
| author | Adam Nemet <anemet@apple.com> | 2014-07-28 17:14:42 +0000 |
|---|---|---|
| committer | Adam Nemet <anemet@apple.com> | 2014-07-28 17:14:42 +0000 |
| commit | a3ebe6214b7bc1f1217ca745ccd825e85c3026cb (patch) | |
| tree | 604635a0328551166a735eb06036bd325f507c68 /clang/lib | |
| parent | 0d5bb5530dae51f205390eb0a93799cf97ecffbb (diff) | |
| download | bcm5719-llvm-a3ebe6214b7bc1f1217ca745ccd825e85c3026cb.tar.gz bcm5719-llvm-a3ebe6214b7bc1f1217ca745ccd825e85c3026cb.zip | |
[AVX512] Add FP add/sub/mul intrinsics
Part of <rdar://problem/17688758>
llvm-svn: 214098
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Headers/avx512fintrin.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/clang/lib/Headers/avx512fintrin.h b/clang/lib/Headers/avx512fintrin.h index 9ea5da9e343..785d5281bc0 100644 --- a/clang/lib/Headers/avx512fintrin.h +++ b/clang/lib/Headers/avx512fintrin.h @@ -93,6 +93,42 @@ _mm512_setzero_pd(void) /* Arithmetic */ +static __inline __m512d __attribute__((__always_inline__, __nodebug__)) +_mm512_add_pd(__m512d __a, __m512d __b) +{ + return __a + __b; +} + +static __inline __m512 __attribute__((__always_inline__, __nodebug__)) +_mm512_add_ps(__m512 __a, __m512 __b) +{ + return __a + __b; +} + +static __inline __m512d __attribute__((__always_inline__, __nodebug__)) +_mm512_mul_pd(__m512d __a, __m512d __b) +{ + return __a * __b; +} + +static __inline __m512 __attribute__((__always_inline__, __nodebug__)) +_mm512_mul_ps(__m512 __a, __m512 __b) +{ + return __a * __b; +} + +static __inline __m512d __attribute__((__always_inline__, __nodebug__)) +_mm512_sub_pd(__m512d __a, __m512d __b) +{ + return __a - __b; +} + +static __inline __m512 __attribute__((__always_inline__, __nodebug__)) +_mm512_sub_ps(__m512 __a, __m512 __b) +{ + return __a - __b; +} + static __inline__ __m512d __attribute__((__always_inline__, __nodebug__)) _mm512_max_pd(__m512d __A, __m512d __B) { |

