[AVX512] Fix _mm_setzero_di to not require avx512vl since its used by the avx512dqintrin.h. Also update the avx512dq test to not enable avx512vl feature so we can ensure correct dependencies.
llvm-svn: 273388
This commit is contained in:
parent
67d8256c11
commit
08181f795f
|
@ -30,9 +30,10 @@
|
|||
|
||||
#define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("avx512vl")))
|
||||
|
||||
static __inline __v2di __DEFAULT_FN_ATTRS
|
||||
/* Doesn't require avx512vl, used in avx512dqintrin.h */
|
||||
static __inline __m128i __attribute__((__always_inline__, __nodebug__, __target__("avx512f")))
|
||||
_mm_setzero_di(void) {
|
||||
return (__v2di){ 0, 0};
|
||||
return (__m128i)(__v2di){ 0LL, 0LL};
|
||||
}
|
||||
|
||||
/* Integer compare */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin -target-feature +avx512dq -target-feature +avx512vl -emit-llvm -o - -Werror | FileCheck %s
|
||||
// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin -target-feature +avx512dq -emit-llvm -o - -Werror | FileCheck %s
|
||||
|
||||
// Don't include mm_malloc.h, it's system specific.
|
||||
#define __MM_MALLOC_H
|
||||
|
|
Loading…
Reference in New Issue