gcc/testsuite/gcc.target/i386/pr89229-7a.c
raw| 1 | /* { dg-do compile { target { ! ia32 } } } */ |
| 2 | /* { dg-options "-O2 -march=skylake-avx512" } */ |
| 3 | |
| 4 | extern int i; |
| 5 | |
| 6 | int |
| 7 | foo1 (void) |
| 8 | { |
| 9 | register int xmm16 __asm ("xmm16") = i; |
| 10 | asm volatile ("" : "+v" (xmm16)); |
| 11 | register int xmm17 __asm ("xmm17") = xmm16; |
| 12 | asm volatile ("" : "+v" (xmm17)); |
| 13 | return xmm17; |
| 14 | } |
| 15 | |
| 16 | /* { dg-final { scan-assembler-times "vmovdqa32\[^\n\r]*xmm1\[67]\[^\n\r]*xmm1\[67]" 1 } } */ |
| 17 | /* { dg-final { scan-assembler-not "%zmm\[0-9\]+" } } */ |