Files
TheRock/compiler/amd-llvm/clang/test/CodeGen/X86/avx10_2convert-builtins.c
T
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

595 lines
23 KiB
C

// RUN: %clang_cc1 %s -flax-vector-conversions=none -ffreestanding -triple=x86_64 -target-feature +avx10.2 \
// RUN: -emit-llvm -o - -Wno-invalid-feature-combination -Wall -Werror | FileCheck %s
// RUN: %clang_cc1 %s -flax-vector-conversions=none -ffreestanding -triple=i386 -target-feature +avx10.2 \
// RUN: -emit-llvm -o - -Wno-invalid-feature-combination -Wall -Werror | FileCheck %s
#include <immintrin.h>
__m128h test_mm_cvtx2ps_ph(__m128 __A, __m128 __B) {
// CHECK-LABEL: @test_mm_cvtx2ps_ph(
// CHECK: call <8 x half> @llvm.x86.avx10.mask.vcvt2ps2phx.128
return _mm_cvtx2ps_ph(__A, __B);
}
__m128h test_mm_mask_cvtx2ps_ph(__m128h __W, __mmask8 __U, __m128 __A, __m128 __B) {
// CHECK-LABEL: @test_mm_mask_cvtx2ps_ph(
// CHECK: call <8 x half> @llvm.x86.avx10.mask.vcvt2ps2phx.128
return _mm_mask_cvtx2ps_ph(__W, __U, __A, __B);
}
__m128h test_mm_maskz_cvtx2ps_ph(__mmask8 __U, __m128 __A, __m128 __B) {
// CHECK-LABEL: @test_mm_maskz_cvtx2ps_ph(
// CHECK: call <8 x half> @llvm.x86.avx10.mask.vcvt2ps2phx.128
return _mm_maskz_cvtx2ps_ph(__U, __A, __B);
}
__m256h test_mm256_cvtx2ps_ph(__m256 __A, __m256 __B) {
// CHECK-LABEL: @test_mm256_cvtx2ps_ph(
// CHECK: call <16 x half> @llvm.x86.avx10.mask.vcvt2ps2phx.256
return _mm256_cvtx2ps_ph(__A, __B);
}
__m256h test_mm256_mask_cvtx2ps_ph(__m256h __W, __mmask16 __U, __m256 __A, __m256 __B) {
// CHECK-LABEL: @test_mm256_mask_cvtx2ps_ph(
// CHECK: call <16 x half> @llvm.x86.avx10.mask.vcvt2ps2phx.256
return _mm256_mask_cvtx2ps_ph(__W, __U, __A, __B);
}
__m256h test_mm256_maskz_cvtx2ps_ph(__mmask16 __U, __m256 __A, __m256 __B) {
// CHECK-LABEL: @test_mm256_maskz_cvtx2ps_ph(
// CHECK: call <16 x half> @llvm.x86.avx10.mask.vcvt2ps2phx.256
return _mm256_maskz_cvtx2ps_ph(__U, __A, __B);
}
__m128i test_mm_cvtbiasph_bf8(__m128i __A, __m128h __B) {
// CHECK-LABEL: @test_mm_cvtbiasph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtbiasph2bf8128(
return _mm_cvtbiasph_bf8(__A, __B);
}
__m128i test_mm_mask_cvtbiasph_bf8(__m128i __W, __mmask8 __U, __m128i __A, __m128h __B) {
// CHECK-LABEL: @test_mm_mask_cvtbiasph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtbiasph2bf8128(
return _mm_mask_cvtbiasph_bf8(__W, __U, __A, __B);
}
__m128i test_mm_maskz_cvtbiasph_bf8(__mmask8 __U, __m128i __A, __m128h __B) {
// CHECK-LABEL: @test_mm_maskz_cvtbiasph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtbiasph2bf8128(
return _mm_maskz_cvtbiasph_bf8(__U, __A, __B);
}
__m128i test_mm256_cvtbiasph_bf8(__m256i __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_cvtbiasph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtbiasph2bf8256(
return _mm256_cvtbiasph_bf8(__A, __B);
}
__m128i test_mm256_mask_cvtbiasph_bf8(__m128i __W, __mmask16 __U, __m256i __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_mask_cvtbiasph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtbiasph2bf8256(
return _mm256_mask_cvtbiasph_bf8(__W, __U, __A, __B);
}
__m128i test_mm256_maskz_cvtbiasph_bf8(__mmask16 __U, __m256i __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_maskz_cvtbiasph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtbiasph2bf8256(
return _mm256_maskz_cvtbiasph_bf8(__U, __A, __B);
}
__m128i test_mm_cvts_biasph_bf8(__m128i __A, __m128h __B) {
// CHECK-LABEL: @test_mm_cvts_biasph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtbiasph2bf8s128(
return _mm_cvts_biasph_bf8(__A, __B);
}
__m128i test_mm_mask_cvts_biasph_bf8(__m128i __W, __mmask8 __U, __m128i __A, __m128h __B) {
// CHECK-LABEL: @test_mm_mask_cvts_biasph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtbiasph2bf8s128(
return _mm_mask_cvts_biasph_bf8(__W, __U, __A, __B);
}
__m128i test_mm_maskz_cvts_biasph_bf8(__mmask8 __U, __m128i __A, __m128h __B) {
// CHECK-LABEL: @test_mm_maskz_cvts_biasph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtbiasph2bf8s128(
return _mm_maskz_cvts_biasph_bf8(__U, __A, __B);
}
__m128i test_mm256_cvts_biasph_bf8(__m256i __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_cvts_biasph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtbiasph2bf8s256(
return _mm256_cvts_biasph_bf8(__A, __B);
}
__m128i test_mm256_mask_cvts_biasph_bf8(__m128i __W, __mmask16 __U, __m256i __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_mask_cvts_biasph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtbiasph2bf8s256(
return _mm256_mask_cvts_biasph_bf8(__W, __U, __A, __B);
}
__m128i test_mm256_maskz_cvts_biasph_bf8(__mmask16 __U, __m256i __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_maskz_cvts_biasph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtbiasph2bf8s256(
return _mm256_maskz_cvts_biasph_bf8(__U, __A, __B);
}
__m128i test_mm_cvtbiasph_hf8(__m128i __A, __m128h __B) {
// CHECK-LABEL: @test_mm_cvtbiasph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtbiasph2hf8128(
return _mm_cvtbiasph_hf8(__A, __B);
}
__m128i test_mm_mask_cvtbiasph_hf8(__m128i __W, __mmask8 __U, __m128i __A, __m128h __B) {
// CHECK-LABEL: @test_mm_mask_cvtbiasph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtbiasph2hf8128(
return _mm_mask_cvtbiasph_hf8(__W, __U, __A, __B);
}
__m128i test_mm_maskz_cvtbiasph_hf8(__mmask8 __U, __m128i __A, __m128h __B) {
// CHECK-LABEL: @test_mm_maskz_cvtbiasph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtbiasph2hf8128(
return _mm_maskz_cvtbiasph_hf8(__U, __A, __B);
}
__m128i test_mm256_cvtbiasph_hf8(__m256i __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_cvtbiasph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtbiasph2hf8256(
return _mm256_cvtbiasph_hf8(__A, __B);
}
__m128i test_mm256_mask_cvtbiasph_hf8(__m128i __W, __mmask16 __U, __m256i __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_mask_cvtbiasph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtbiasph2hf8256(
return _mm256_mask_cvtbiasph_hf8(__W, __U, __A, __B);
}
__m128i test_mm256_maskz_cvtbiasph_hf8(__mmask16 __U, __m256i __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_maskz_cvtbiasph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtbiasph2hf8256(
return _mm256_maskz_cvtbiasph_hf8(__U, __A, __B);
}
__m128i test_mm_cvts_biasph_hf8(__m128i __A, __m128h __B) {
// CHECK-LABEL: @test_mm_cvts_biasph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtbiasph2hf8s128(
return _mm_cvts_biasph_hf8(__A, __B);
}
__m128i test_mm_mask_cvts_biasph_hf8(__m128i __W, __mmask8 __U, __m128i __A, __m128h __B) {
// CHECK-LABEL: @test_mm_mask_cvts_biasph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtbiasph2hf8s128(
return _mm_mask_cvts_biasph_hf8(__W, __U, __A, __B);
}
__m128i test_mm_maskz_cvts_biasph_hf8(__mmask8 __U, __m128i __A, __m128h __B) {
// CHECK-LABEL: @test_mm_maskz_cvts_biasph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtbiasph2hf8s128(
return _mm_maskz_cvts_biasph_hf8(__U, __A, __B);
}
__m128i test_mm256_cvts_biasph_hf8(__m256i __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_cvts_biasph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtbiasph2hf8s256(
return _mm256_cvts_biasph_hf8(__A, __B);
}
__m128i test_mm256_mask_cvts_biasph_hf8(__m128i __W, __mmask16 __U, __m256i __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_mask_cvts_biasph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtbiasph2hf8s256(
return _mm256_mask_cvts_biasph_hf8(__W, __U, __A, __B);
}
__m128i test_mm256_maskz_cvts_biasph_hf8(__mmask16 __U, __m256i __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_maskz_cvts_biasph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtbiasph2hf8s256(
return _mm256_maskz_cvts_biasph_hf8(__U, __A, __B);
}
__m128i test_mm_cvt2ph_bf8(__m128h __A, __m128h __B) {
// CHECK-LABEL: @test_mm_cvt2ph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.vcvt2ph2bf8128(
return _mm_cvt2ph_bf8(__A, __B);
}
__m128i test_mm_mask_cvt2ph_bf8(__m128i __W, __mmask16 __U, __m128h __A, __m128h __B) {
// CHECK-LABEL: @test_mm_mask_cvt2ph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.vcvt2ph2bf8128(
// CHECK: select <16 x i1> %{{.*}}, <16 x i8> %{{.*}}, <16 x i8> %{{.*}}
// CHECK: ret <2 x i64> %{{.*}}
return _mm_mask_cvt2ph_bf8(__W, __U, __A, __B);
}
__m128i test_mm_maskz_cvt2ph_bf8(__mmask16 __U, __m128h __A, __m128h __B) {
// CHECK-LABEL: @test_mm_maskz_cvt2ph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.vcvt2ph2bf8128(
// CHECK: zeroinitializer
// CHECK: select <16 x i1> %{{.*}}, <16 x i8> %{{.*}}, <16 x i8> %{{.*}}
return _mm_maskz_cvt2ph_bf8(__U, __A, __B);
}
__m256i test_mm256_cvt2ph_bf8(__m256h __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_cvt2ph_bf8(
// CHECK: call <32 x i8> @llvm.x86.avx10.vcvt2ph2bf8256(
return _mm256_cvt2ph_bf8(__A, __B);
}
__m256i test_mm256_mask_cvt2ph_bf8(__m256i __W, __mmask32 __U, __m256h __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_mask_cvt2ph_bf8(
// CHECK: call <32 x i8> @llvm.x86.avx10.vcvt2ph2bf8256(
// CHECK: select <32 x i1> %{{.*}}, <32 x i8> %{{.*}}, <32 x i8> %{{.*}}
// CHECK: ret <4 x i64> %{{.*}}
return _mm256_mask_cvt2ph_bf8(__W, __U, __A, __B);
}
__m256i test_mm256_maskz_cvt2ph_bf8(__mmask32 __U, __m256h __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_maskz_cvt2ph_bf8(
// CHECK: call <32 x i8> @llvm.x86.avx10.vcvt2ph2bf8256(
// CHECK: zeroinitializer
// CHECK: select <32 x i1> %{{.*}}, <32 x i8> %{{.*}}, <32 x i8> %{{.*}}
return _mm256_maskz_cvt2ph_bf8(__U, __A, __B);
}
__m128i test_mm_cvts_2ph_bf8(__m128h __A, __m128h __B) {
// CHECK-LABEL: @test_mm_cvts_2ph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.vcvt2ph2bf8s128(
return _mm_cvts_2ph_bf8(__A, __B);
}
__m128i test_mm_mask_cvts_2ph_bf8(__m128i __W, __mmask16 __U, __m128h __A, __m128h __B) {
// CHECK-LABEL: @test_mm_mask_cvts_2ph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.vcvt2ph2bf8s128(
// CHECK: select <16 x i1> %{{.*}}, <16 x i8> %{{.*}}, <16 x i8> %{{.*}}
// CHECK: ret <2 x i64> %{{.*}}
return _mm_mask_cvts_2ph_bf8(__W, __U, __A, __B);
}
__m128i test_mm_maskz_cvts_2ph_bf8(__mmask16 __U, __m128h __A, __m128h __B) {
// CHECK-LABEL: @test_mm_maskz_cvts_2ph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.vcvt2ph2bf8s128(
// CHECK: zeroinitializer
// CHECK: select <16 x i1> %{{.*}}, <16 x i8> %{{.*}}, <16 x i8> %{{.*}}
return _mm_maskz_cvts_2ph_bf8(__U, __A, __B);
}
__m256i test_mm256_cvts_2ph_bf8(__m256h __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_cvts_2ph_bf8(
// CHECK: call <32 x i8> @llvm.x86.avx10.vcvt2ph2bf8s256(
return _mm256_cvts_2ph_bf8(__A, __B);
}
__m256i test_mm256_mask_cvts_2ph_bf8(__m256i __W, __mmask32 __U, __m256h __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_mask_cvts_2ph_bf8(
// CHECK: call <32 x i8> @llvm.x86.avx10.vcvt2ph2bf8s256(
// CHECK: select <32 x i1> %{{.*}}, <32 x i8> %{{.*}}, <32 x i8> %{{.*}}
// CHECK: ret <4 x i64> %{{.*}}
return _mm256_mask_cvts_2ph_bf8(__W, __U, __A, __B);
}
__m256i test_mm256_maskz_cvts_2ph_bf8(__mmask32 __U, __m256h __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_maskz_cvts_2ph_bf8(
// CHECK: call <32 x i8> @llvm.x86.avx10.vcvt2ph2bf8s256(
// CHECK: zeroinitializer
// CHECK: select <32 x i1> %{{.*}}, <32 x i8> %{{.*}}, <32 x i8> %{{.*}}
return _mm256_maskz_cvts_2ph_bf8(__U, __A, __B);
}
__m128i test_mm_cvt2ph_hf8(__m128h __A, __m128h __B) {
// CHECK-LABEL: @test_mm_cvt2ph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.vcvt2ph2hf8128(
return _mm_cvt2ph_hf8(__A, __B);
}
__m128i test_mm_mask_cvt2ph_hf8(__m128i __W, __mmask16 __U, __m128h __A, __m128h __B) {
// CHECK-LABEL: @test_mm_mask_cvt2ph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.vcvt2ph2hf8128(
// CHECK: select <16 x i1> %{{.*}}, <16 x i8> %{{.*}}, <16 x i8> %{{.*}}
// CHECK: ret <2 x i64> %{{.*}}
return _mm_mask_cvt2ph_hf8(__W, __U, __A, __B);
}
__m128i test_mm_maskz_cvt2ph_hf8(__mmask16 __U, __m128h __A, __m128h __B) {
// CHECK-LABEL: @test_mm_maskz_cvt2ph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.vcvt2ph2hf8128(
// CHECK: zeroinitializer
// CHECK: select <16 x i1> %{{.*}}, <16 x i8> %{{.*}}, <16 x i8> %{{.*}}
return _mm_maskz_cvt2ph_hf8(__U, __A, __B);
}
__m256i test_mm256_cvt2ph_hf8(__m256h __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_cvt2ph_hf8(
// CHECK: call <32 x i8> @llvm.x86.avx10.vcvt2ph2hf8256(
return _mm256_cvt2ph_hf8(__A, __B);
}
__m256i test_mm256_mask_cvt2ph_hf8(__m256i __W, __mmask32 __U, __m256h __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_mask_cvt2ph_hf8(
// CHECK: call <32 x i8> @llvm.x86.avx10.vcvt2ph2hf8256(
// CHECK: select <32 x i1> %{{.*}}, <32 x i8> %{{.*}}, <32 x i8> %{{.*}}
// CHECK: ret <4 x i64> %{{.*}}
return _mm256_mask_cvt2ph_hf8(__W, __U, __A, __B);
}
__m256i test_mm256_maskz_cvt2ph_hf8(__mmask32 __U, __m256h __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_maskz_cvt2ph_hf8(
// CHECK: call <32 x i8> @llvm.x86.avx10.vcvt2ph2hf8256(
// CHECK: zeroinitializer
// CHECK: select <32 x i1> %{{.*}}, <32 x i8> %{{.*}}, <32 x i8> %{{.*}}
return _mm256_maskz_cvt2ph_hf8(__U, __A, __B);
}
__m128i test_mm_cvts_2ph_hf8(__m128h __A, __m128h __B) {
// CHECK-LABEL: @test_mm_cvts_2ph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.vcvt2ph2hf8s128(
return _mm_cvts_2ph_hf8(__A, __B);
}
__m128i test_mm_mask_cvts_2ph_hf8(__m128i __W, __mmask16 __U, __m128h __A, __m128h __B) {
// CHECK-LABEL: @test_mm_mask_cvts_2ph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.vcvt2ph2hf8s128(
// CHECK: select <16 x i1> %{{.*}}, <16 x i8> %{{.*}}, <16 x i8> %{{.*}}
// CHECK: ret <2 x i64> %{{.*}}
return _mm_mask_cvts_2ph_hf8(__W, __U, __A, __B);
}
__m128i test_mm_maskz_cvts_2ph_hf8(__mmask16 __U, __m128h __A, __m128h __B) {
// CHECK-LABEL: @test_mm_maskz_cvts_2ph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.vcvt2ph2hf8s128(
// CHECK: zeroinitializer
// CHECK: select <16 x i1> %{{.*}}, <16 x i8> %{{.*}}, <16 x i8> %{{.*}}
return _mm_maskz_cvts_2ph_hf8(__U, __A, __B);
}
__m256i test_mm256_cvts_2ph_hf8(__m256h __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_cvts_2ph_hf8(
// CHECK: call <32 x i8> @llvm.x86.avx10.vcvt2ph2hf8s256(
return _mm256_cvts_2ph_hf8(__A, __B);
}
__m256i test_mm256_mask_cvts_2ph_hf8(__m256i __W, __mmask32 __U, __m256h __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_mask_cvts_2ph_hf8(
// CHECK: call <32 x i8> @llvm.x86.avx10.vcvt2ph2hf8s256(
// CHECK: select <32 x i1> %{{.*}}, <32 x i8> %{{.*}}, <32 x i8> %{{.*}}
// CHECK: ret <4 x i64> %{{.*}}
return _mm256_mask_cvts_2ph_hf8(__W, __U, __A, __B);
}
__m256i test_mm256_maskz_cvts_2ph_hf8(__mmask32 __U, __m256h __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_maskz_cvts_2ph_hf8(
// CHECK: call <32 x i8> @llvm.x86.avx10.vcvt2ph2hf8s256(
// CHECK: zeroinitializer
// CHECK: select <32 x i1> %{{.*}}, <32 x i8> %{{.*}}, <32 x i8> %{{.*}}
return _mm256_maskz_cvts_2ph_hf8(__U, __A, __B);
}
__m128h test_mm_cvthf8_ph(__m128i __A) {
// CHECK-LABEL: @test_mm_cvthf8_ph(
// CHECK: call <8 x half> @llvm.x86.avx10.mask.vcvthf82ph128(
return _mm_cvthf8_ph(__A);
}
__m128h test_mm_mask_cvthf8_ph(__m128h __A, __mmask8 __B, __m128i __C) {
// CHECK-LABEL: @test_mm_mask_cvthf8_ph(
// CHECK: call <8 x half> @llvm.x86.avx10.mask.vcvthf82ph128(
return _mm_mask_cvthf8_ph(__A, __B, __C);
}
__m128h test_mm_maskz_cvthf8_ph(__mmask8 __A, __m128i __B) {
// CHECK-LABEL: @test_mm_maskz_cvthf8_ph(
// CHECK: call <8 x half> @llvm.x86.avx10.mask.vcvthf82ph128(
return _mm_maskz_cvthf8_ph(__A, __B);
}
__m256h test_mm256_cvthf8_ph(__m128i __A) {
// CHECK-LABEL: @test_mm256_cvthf8_ph(
// CHECK: call <16 x half> @llvm.x86.avx10.mask.vcvthf82ph256(
return _mm256_cvthf8_ph(__A);
}
__m256h test_mm256_mask_cvthf8_ph(__m256h __A, __mmask16 __B, __m128i __C) {
// CHECK-LABEL: @test_mm256_mask_cvthf8_ph(
// CHECK: call <16 x half> @llvm.x86.avx10.mask.vcvthf82ph256(
return _mm256_mask_cvthf8_ph(__A, __B, __C);
}
__m256h test_mm256_maskz_cvthf8_ph(__mmask16 __A, __m128i __B) {
// CHECK-LABEL: @test_mm256_maskz_cvthf8_ph(
// CHECK: call <16 x half> @llvm.x86.avx10.mask.vcvthf82ph256(
return _mm256_maskz_cvthf8_ph(__A, __B);
}
__m128i test_mm_cvtph_bf8(__m128h __A) {
// CHECK-LABEL: @test_mm_cvtph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtph2bf8128(
return _mm_cvtph_bf8(__A);
}
__m128i test_mm_mask_cvtph_bf8(__m128i __A, __mmask8 __B, __m128h __C) {
// CHECK-LABEL: @test_mm_mask_cvtph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtph2bf8128(
return _mm_mask_cvtph_bf8(__A, __B, __C);
}
__m128i test_mm_maskz_cvtph_bf8(__mmask8 __A, __m128h __B) {
// CHECK-LABEL: @test_mm_maskz_cvtph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtph2bf8128(
return _mm_maskz_cvtph_bf8(__A, __B);
}
__m128i test_mm256_cvtph_bf8(__m256h __A) {
// CHECK-LABEL: @test_mm256_cvtph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtph2bf8256(
return _mm256_cvtph_bf8(__A);
}
__m128i test_mm256_mask_cvtph_bf8(__m128i __A, __mmask16 __B, __m256h __C) {
// CHECK-LABEL: @test_mm256_mask_cvtph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtph2bf8256(
return _mm256_mask_cvtph_bf8(__A, __B, __C);
}
__m128i test_mm256_maskz_cvtph_bf8(__mmask16 __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_maskz_cvtph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtph2bf8256(
return _mm256_maskz_cvtph_bf8(__A, __B);
}
__m128i test_mm_cvts_ph_bf8(__m128h __A) {
// CHECK-LABEL: @test_mm_cvts_ph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtph2bf8s128(
return _mm_cvts_ph_bf8(__A);
}
__m128i test_mm_mask_cvts_ph_bf8(__m128i __A, __mmask8 __B, __m128h __C) {
// CHECK-LABEL: @test_mm_mask_cvts_ph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtph2bf8s128(
return _mm_mask_cvts_ph_bf8(__A, __B, __C);
}
__m128i test_mm_maskz_cvts_ph_bf8(__mmask8 __A, __m128h __B) {
// CHECK-LABEL: @test_mm_maskz_cvts_ph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtph2bf8s128(
return _mm_maskz_cvts_ph_bf8(__A, __B);
}
__m128i test_mm256_cvts_ph_bf8(__m256h __A) {
// CHECK-LABEL: @test_mm256_cvts_ph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtph2bf8s256(
return _mm256_cvts_ph_bf8(__A);
}
__m128i test_mm256_mask_cvts_ph_bf8(__m128i __A, __mmask16 __B, __m256h __C) {
// CHECK-LABEL: @test_mm256_mask_cvts_ph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtph2bf8s256(
return _mm256_mask_cvts_ph_bf8(__A, __B, __C);
}
__m128i test_mm256_maskz_cvts_ph_bf8(__mmask16 __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_maskz_cvts_ph_bf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtph2bf8s256(
return _mm256_maskz_cvts_ph_bf8(__A, __B);
}
__m128i test_mm_cvtph_hf8(__m128h __A) {
// CHECK-LABEL: @test_mm_cvtph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtph2hf8128(
return _mm_cvtph_hf8(__A);
}
__m128i test_mm_mask_cvtph_hf8(__m128i __A, __mmask8 __B, __m128h __C) {
// CHECK-LABEL: @test_mm_mask_cvtph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtph2hf8128(
return _mm_mask_cvtph_hf8(__A, __B, __C);
}
__m128i test_mm_maskz_cvtph_hf8(__mmask8 __A, __m128h __B) {
// CHECK-LABEL: @test_mm_maskz_cvtph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtph2hf8128(
return _mm_maskz_cvtph_hf8(__A, __B);
}
__m128i test_mm256_cvtph_hf8(__m256h __A) {
// CHECK-LABEL: @test_mm256_cvtph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtph2hf8256(
return _mm256_cvtph_hf8(__A);
}
__m128i test_mm256_mask_cvtph_hf8(__m128i __A, __mmask16 __B, __m256h __C) {
// CHECK-LABEL: @test_mm256_mask_cvtph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtph2hf8256(
return _mm256_mask_cvtph_hf8(__A, __B, __C);
}
__m128i test_mm256_maskz_cvtph_hf8(__mmask16 __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_maskz_cvtph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtph2hf8256(
return _mm256_maskz_cvtph_hf8(__A, __B);
}
__m128i test_mm_cvts_ph_hf8(__m128h __A) {
// CHECK-LABEL: @test_mm_cvts_ph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtph2hf8s128(
return _mm_cvts_ph_hf8(__A);
}
__m128i test_mm_mask_cvts_ph_hf8(__m128i __A, __mmask8 __B, __m128h __C) {
// CHECK-LABEL: @test_mm_mask_cvts_ph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtph2hf8s128(
return _mm_mask_cvts_ph_hf8(__A, __B, __C);
}
__m128i test_mm_maskz_cvts_ph_hf8(__mmask8 __A, __m128h __B) {
// CHECK-LABEL: @test_mm_maskz_cvts_ph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtph2hf8s128(
return _mm_maskz_cvts_ph_hf8(__A, __B);
}
__m128i test_mm256_cvts_ph_hf8(__m256h __A) {
// CHECK-LABEL: @test_mm256_cvts_ph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtph2hf8s256(
return _mm256_cvts_ph_hf8(__A);
}
__m128i test_mm256_mask_cvts_ph_hf8(__m128i __A, __mmask16 __B, __m256h __C) {
// CHECK-LABEL: @test_mm256_mask_cvts_ph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtph2hf8s256(
return _mm256_mask_cvts_ph_hf8(__A, __B, __C);
}
__m128i test_mm256_maskz_cvts_ph_hf8(__mmask16 __A, __m256h __B) {
// CHECK-LABEL: @test_mm256_maskz_cvts_ph_hf8(
// CHECK: call <16 x i8> @llvm.x86.avx10.mask.vcvtph2hf8s256(
return _mm256_maskz_cvts_ph_hf8(__A, __B);
}
__m256h test_mm256_cvtbf8_ph(__m128i A) {
// CHECK-LABEL: @test_mm256_cvtbf8_ph
// CHECK: sext <16 x i8> %{{.*}} to <16 x i16>
// CHECK: @llvm.x86.avx2.pslli.w
// CHECK: ret <16 x half> %{{.*}}
return _mm256_cvtbf8_ph(A);
}
__m256h test_mm256_mask_cvtbf8_ph(__m256h S, __mmask16 M, __m128i A) {
// CHECK-LABEL: @test_mm256_mask_cvtbf8_ph
// CHECK: sext <16 x i8> %{{.*}} to <16 x i16>
// CHECK: @llvm.x86.avx2.pslli.w
// CHECK: select <16 x i1> %{{.*}}, <16 x i16> %{{.*}}, <16 x i16> %{{.*}}
// CHECK: ret <16 x half> %{{.*}}
return _mm256_mask_cvtbf8_ph(S, M, A);
}
__m256h test_mm256_maskz_cvtbf8_ph(__mmask16 M, __m128i A) {
// CHECK-LABEL: @test_mm256_maskz_cvtbf8_ph
// CHECK: sext <16 x i8> %{{.*}} to <16 x i16>
// CHECK: select <16 x i1> %{{.*}}, <16 x i16> %{{.*}}, <16 x i16> %{{.*}}
// CHECK: @llvm.x86.avx2.pslli.w
// CHECK: ret <16 x half> %{{.*}}
return _mm256_maskz_cvtbf8_ph(M, A);
}
__m128h test_mm_cvtbf8_ph(__m128i A) {
// CHECK-LABEL: @test_mm_cvtbf8_ph
// CHECK: sext <8 x i8> %{{.*}} to <8 x i16>
// CHECK: @llvm.x86.sse2.pslli.w
// CHECK: ret <8 x half> %{{.*}}
return _mm_cvtbf8_ph(A);
}
__m128h test_mm_mask_cvtbf8_ph(__m128h S, __mmask8 M, __m128i A) {
// CHECK-LABEL: @test_mm_mask_cvtbf8_ph
// CHECK: sext <8 x i8> %{{.*}} to <8 x i16>
// CHECK: @llvm.x86.sse2.pslli.w
// CHECK: select <8 x i1> %{{.*}}, <8 x i16> %{{.*}}, <8 x i16> %{{.*}}
// CHECK: ret <8 x half> %{{.*}}
return _mm_mask_cvtbf8_ph(S, M, A);
}
__m128h test_mm_maskz_cvtbf8_ph(__mmask8 M, __m128i A) {
// CHECK-LABEL: @test_mm_maskz_cvtbf8_ph
// CHECK: sext <8 x i8> %{{.*}} to <8 x i16>
// CHECK: select <8 x i1> %{{.*}}, <8 x i16> %{{.*}}, <8 x i16> %{{.*}}
// CHECK: @llvm.x86.sse2.pslli.w
// CHECK: ret <8 x half> %{{.*}}
return _mm_maskz_cvtbf8_ph(M, A);
}