Files
TheRock/compiler/amd-llvm/clang/test/CodeGen/X86/avxneconvert-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

92 lines
3.2 KiB
C

// RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown -target-feature +avx2 -target-feature +avxneconvert \
// RUN: -emit-llvm -o - -Wall -Werror -pedantic -Wno-gnu-statement-expression | FileCheck %s
// RUN: %clang_cc1 %s -ffreestanding -triple=i386-unknown-unknown -target-feature +avx2 -target-feature +avxneconvert \
// RUN: -emit-llvm -o - -Wall -Werror -pedantic -Wno-gnu-statement-expression | FileCheck %s
#include <immintrin.h>
#include <stddef.h>
__m128 test_mm_bcstnebf16_ps(const void *__A) {
// CHECK-LABEL: @test_mm_bcstnebf16_ps(
// CHECK: call <4 x float> @llvm.x86.vbcstnebf162ps128(ptr %{{.*}})
return _mm_bcstnebf16_ps(__A);
}
__m256 test_mm256_bcstnebf16_ps(const void *__A) {
// CHECK-LABEL: @test_mm256_bcstnebf16_ps(
// CHECK: call <8 x float> @llvm.x86.vbcstnebf162ps256(ptr %{{.*}})
return _mm256_bcstnebf16_ps(__A);
}
__m128 test_mm_bcstnesh_ps(const void *__A) {
// CHECK-LABEL: @test_mm_bcstnesh_ps(
// CHECK: call <4 x float> @llvm.x86.vbcstnesh2ps128(ptr %{{.*}})
return _mm_bcstnesh_ps(__A);
}
__m256 test_mm256_bcstnesh_ps(const void *__A) {
// CHECK-LABEL: @test_mm256_bcstnesh_ps(
// CHECK: call <8 x float> @llvm.x86.vbcstnesh2ps256(ptr %{{.*}})
return _mm256_bcstnesh_ps(__A);
}
__m128 test_mm_cvtneebf16_ps(const __m128bh *__A) {
// CHECK-LABEL: @test_mm_cvtneebf16_ps(
// CHECK: call <4 x float> @llvm.x86.vcvtneebf162ps128(ptr %{{.*}})
return _mm_cvtneebf16_ps(__A);
}
__m256 test_mm256_cvtneebf16_ps(const __m256bh *__A) {
// CHECK-LABEL: @test_mm256_cvtneebf16_ps(
// CHECK: call <8 x float> @llvm.x86.vcvtneebf162ps256(ptr %{{.*}})
return _mm256_cvtneebf16_ps(__A);
}
__m128 test_mm_cvtneeph_ps(const __m128h *__A) {
// CHECK-LABEL: @test_mm_cvtneeph_ps(
// CHECK: call <4 x float> @llvm.x86.vcvtneeph2ps128(ptr %{{.*}})
return _mm_cvtneeph_ps(__A);
}
__m256 test_mm256_cvtneeph_ps(const __m256h *__A) {
// CHECK-LABEL: @test_mm256_cvtneeph_ps(
// CHECK: call <8 x float> @llvm.x86.vcvtneeph2ps256(ptr %{{.*}})
return _mm256_cvtneeph_ps(__A);
}
__m128 test_mm_cvtneobf16_ps(const __m128bh *__A) {
// CHECK-LABEL: @test_mm_cvtneobf16_ps(
// CHECK: call <4 x float> @llvm.x86.vcvtneobf162ps128(ptr %{{.*}})
return _mm_cvtneobf16_ps(__A);
}
__m256 test_mm256_cvtneobf16_ps(const __m256bh *__A) {
// CHECK-LABEL: @test_mm256_cvtneobf16_ps(
// CHECK: call <8 x float> @llvm.x86.vcvtneobf162ps256(ptr %{{.*}})
return _mm256_cvtneobf16_ps(__A);
}
__m128 test_mm_cvtneoph_ps(const __m128h *__A) {
// CHECK-LABEL: @test_mm_cvtneoph_ps(
// CHECK: call <4 x float> @llvm.x86.vcvtneoph2ps128(ptr %{{.*}})
return _mm_cvtneoph_ps(__A);
}
__m256 test_mm256_cvtneoph_ps(const __m256h *__A) {
// CHECK-LABEL: @test_mm256_cvtneoph_ps(
// CHECK: call <8 x float> @llvm.x86.vcvtneoph2ps256(ptr %{{.*}})
return _mm256_cvtneoph_ps(__A);
}
__m128bh test_mm_cvtneps_avx_pbh(__m128 __A) {
// CHECK-LABEL: @test_mm_cvtneps_avx_pbh(
// CHECK: call <8 x bfloat> @llvm.x86.vcvtneps2bf16128(<4 x float> %{{.*}})
return _mm_cvtneps_avx_pbh(__A);
}
__m128bh test_mm256_cvtneps_avx_pbh(__m256 __A) {
// CHECK-LABEL: @test_mm256_cvtneps_avx_pbh(
// CHECK: call <8 x bfloat> @llvm.x86.vcvtneps2bf16256(<8 x float> %{{.*}})
return _mm256_cvtneps_avx_pbh(__A);
}