Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 869fccc

Browse files
committedApr 26, 2025·
[X86][AVX512FP16] Decouple AVX512VL and AVX512DQ from AVX512FP16
Fixes: #136209
1 parent 571e024 commit 869fccc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+571
-337
lines changed
 

‎clang/lib/Headers/avx512fp16intrin.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,8 @@ static __inline__ __m512h __DEFAULT_FN_ATTRS512 _mm512_abs_ph(__m512h __A) {
553553
}
554554

555555
static __inline__ __m512h __DEFAULT_FN_ATTRS512 _mm512_conj_pch(__m512h __A) {
556-
return (__m512h)_mm512_xor_ps((__m512)__A, _mm512_set1_ps(-0.0f));
556+
return (__m512h)_mm512_xor_epi32((__m512i)__A,
557+
_mm512_set1_epi32(-2147483648));
557558
}
558559

559560
static __inline__ __m512h __DEFAULT_FN_ATTRS512

‎clang/test/CodeGen/X86/avx512fp16-builtins-constrained-cmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -flax-vector-conversions=none -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +avx512fp16 -emit-llvm -ffp-exception-behavior=strict -o - -Wall -Werror | FileCheck %s
1+
// RUN: %clang_cc1 -flax-vector-conversions=none -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +avx512fp16 -target-feature +avx512vl -emit-llvm -ffp-exception-behavior=strict -o - -Wall -Werror | FileCheck %s
22

33
#include <immintrin.h>
44

0 commit comments

Comments
 (0)
Please sign in to comment.