Files
TheRock/compiler/amd-llvm/clang/test/CodeGen/X86/x86-GCC-inline-asm-Y-constraints.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

57 lines
1.5 KiB
C

// RUN: %clang_cc1 -ffreestanding -triple=x86_64-apple-darwin -target-cpu skx %s -emit-llvm -o - | FileCheck %s
#include <xmmintrin.h>
// This test is complemented by the .ll test under llvm/test/MC/X86/.
// At this level we can only check if the constarints are passed correctly
// from inline asm to llvm IR.
// CHECK-LABEL: @f_Ym
void f_Ym(__m64 m)
{
// CHECK: movq $0, %mm1
// CHECK-SAME: "=^Ym,~{dirflag},~{fpsr},~{flags}"
__asm__ volatile ("movq %0, %%mm1\n\t"
:"=Ym" (m));
}
// CHECK-LABEL: f_Yi
void f_Yi(__m128 x, __m128 y, __m128 z)
{
// CHECK: vpaddq
// CHECK-SAME: "=^Yi,^Yi,^Yi,~{dirflag},~{fpsr},~{flags}"
__asm__ volatile ("vpaddq %0, %1, %2\n\t"
:"=Yi" (x)
:"Yi" (y),"Yi"(z));
}
// CHECK-LABEL: f_Yt
void f_Yt(__m128 x, __m128 y, __m128 z)
{
// CHECK: vpaddq
// CHECK-SAME: "=^Yt,^Yt,^Yt,~{dirflag},~{fpsr},~{flags}"
__asm__ volatile ("vpaddq %0, %1, %2\n\t"
:"=Yt" (x)
:"Yt" (y),"Yt"(z));
}
// CHECK-LABEL: f_Y2
void f_Y2(__m128 x, __m128 y, __m128 z)
{
// CHECK: vpaddq
// CHECK-SAME: "=^Y2,^Y2,^Y2,~{dirflag},~{fpsr},~{flags}"
__asm__ volatile ("vpaddq %0, %1, %2\n\t"
:"=Y2" (x)
:"Y2" (y),"Y2"(z));
}
// CHECK-LABEL: f_Yz
void f_Yz(__m128 x, __m128 y, __m128 z)
{
// CHECK: vpaddq
// CHECK-SAME: vpaddq
// CHECK-SAME: "=^Yi,=^Yz,^Yi,0,~{dirflag},~{fpsr},~{flags}"
__asm__ volatile ("vpaddq %0,%2,%1\n\t"
"vpaddq %1,%0,%2\n\t"
:"+Yi"(z),"=Yz" (x)
:"Yi" (y) );
}