You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.7 KiB
43 lines
1.7 KiB
4 months ago
|
// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin -target-feature +avx512ifma -emit-llvm -o - -Werror | FileCheck %s
|
||
|
|
||
|
// Don't include mm_malloc.h, it's system specific.
|
||
|
#define __MM_MALLOC_H
|
||
|
|
||
|
#include <immintrin.h>
|
||
|
|
||
|
__m512i test_mm512_madd52hi_epu64(__m512i __X, __m512i __Y, __m512i __Z) {
|
||
|
// CHECK-LABEL: @test_mm512_madd52hi_epu64
|
||
|
// CHECK: @llvm.x86.avx512.mask.vpmadd52h.uq.512
|
||
|
return _mm512_madd52hi_epu64(__X, __Y, __Z);
|
||
|
}
|
||
|
|
||
|
__m512i test_mm512_mask_madd52hi_epu64(__m512i __W, __mmask8 __M, __m512i __X, __m512i __Y) {
|
||
|
// CHECK-LABEL: @test_mm512_mask_madd52hi_epu64
|
||
|
// CHECK: @llvm.x86.avx512.mask.vpmadd52h.uq.512
|
||
|
return _mm512_mask_madd52hi_epu64(__W, __M, __X, __Y);
|
||
|
}
|
||
|
|
||
|
__m512i test_mm512_maskz_madd52hi_epu64(__mmask8 __M, __m512i __X, __m512i __Y, __m512i __Z) {
|
||
|
// CHECK-LABEL: @test_mm512_maskz_madd52hi_epu64
|
||
|
// CHECK: @llvm.x86.avx512.maskz.vpmadd52h.uq.512
|
||
|
return _mm512_maskz_madd52hi_epu64(__M, __X, __Y, __Z);
|
||
|
}
|
||
|
|
||
|
__m512i test_mm512_madd52lo_epu64(__m512i __X, __m512i __Y, __m512i __Z) {
|
||
|
// CHECK-LABEL: @test_mm512_madd52lo_epu64
|
||
|
// CHECK: @llvm.x86.avx512.mask.vpmadd52l.uq.512
|
||
|
return _mm512_madd52lo_epu64(__X, __Y, __Z);
|
||
|
}
|
||
|
|
||
|
__m512i test_mm512_mask_madd52lo_epu64(__m512i __W, __mmask8 __M, __m512i __X, __m512i __Y) {
|
||
|
// CHECK-LABEL: @test_mm512_mask_madd52lo_epu64
|
||
|
// CHECK: @llvm.x86.avx512.mask.vpmadd52l.uq.512
|
||
|
return _mm512_mask_madd52lo_epu64(__W, __M, __X, __Y);
|
||
|
}
|
||
|
|
||
|
__m512i test_mm512_maskz_madd52lo_epu64(__mmask8 __M, __m512i __X, __m512i __Y, __m512i __Z) {
|
||
|
// CHECK-LABEL: @test_mm512_maskz_madd52lo_epu64
|
||
|
// CHECK: @llvm.x86.avx512.mask.vpmadd52l.uq.512
|
||
|
return _mm512_maskz_madd52lo_epu64(__M, __X, __Y, __Z);
|
||
|
}
|