PR rtl-optimization/87918
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512f-cvt-1.c
blobacfbe311aac1425ca568d032edff9a8f7295e868
1 /* { dg-do assemble { target { avx512f && { ! ia32 } } } } */
2 /* { dg-options "-O2 -mavx512f -mfpmath=387,sse" } */
4 void
5 f1 (double *p)
7 register float x __asm ("xmm16");
8 x = *p;
9 __asm volatile ("" : "+v" (x));
12 void
13 f2 (void)
15 double d;
16 register float x __asm ("xmm16");
17 __asm volatile ("" : "=t" (d));
18 x = d;
19 __asm volatile ("" : "+v" (x));
22 void
23 f3 (long double *p)
25 register float x __asm ("xmm16");
26 x = *p;
27 __asm volatile ("" : "+v" (x));
30 void
31 f4 (void)
33 long double d;
34 register float x __asm ("xmm16");
35 __asm volatile ("" : "=t" (d));
36 x = d;
37 __asm volatile ("" : "+v" (x));