1 // RUN: %clang_cc1 -ffreestanding -triple=x86_64-apple-darwin -target-cpu skx %s -emit-llvm -o - | FileCheck %s
3 // This test is complemented by the .ll test under llvm/test/MC/X86/.
4 // At this level we can only check if the constarints are passed correctly
5 // from inline asm to llvm IR.
10 // CHECK: movq $0, %mm1
11 // CHECK-SAME: "=^Ym,~{dirflag},~{fpsr},~{flags}"
12 __asm__
volatile ("movq %0, %%mm1\n\t"
17 void f_Yi(__m128 x
, __m128 y
, __m128 z
)
20 // CHECK-SAME: "=^Yi,^Yi,^Yi,~{dirflag},~{fpsr},~{flags}"
21 __asm__
volatile ("vpaddq %0, %1, %2\n\t"
27 void f_Yt(__m128 x
, __m128 y
, __m128 z
)
30 // CHECK-SAME: "=^Yt,^Yt,^Yt,~{dirflag},~{fpsr},~{flags}"
31 __asm__
volatile ("vpaddq %0, %1, %2\n\t"
37 void f_Y2(__m128 x
, __m128 y
, __m128 z
)
40 // CHECK-SAME: "=^Y2,^Y2,^Y2,~{dirflag},~{fpsr},~{flags}"
41 __asm__
volatile ("vpaddq %0, %1, %2\n\t"
47 void f_Yz(__m128 x
, __m128 y
, __m128 z
)
51 // CHECK-SAME: "=^Yi,=^Yz,^Yi,0,~{dirflag},~{fpsr},~{flags}"
52 __asm__
volatile ("vpaddq %0,%2,%1\n\t"