[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:
Craig Topper 2016-06-22 06:36:21 +00:00
parent 67d8256c11
commit 08181f795f
2 changed files with 4 additions and 3 deletions

View File

@ -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 */

View File

@ -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