aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr104974.c
blob: d1f2b1a972266f184a0e2a7d72458aac60fdff1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do assemble { target avx512fp16 } } */
/* { dg-options "-mavx512fp16 -O2" } */

short
foo (short a)
{
  register short b __asm ("%xmm1") = a;
  asm volatile ("": "+v" (b));
  register short c __asm ("%xmm2") = b;
  asm volatile ("": "+v" (c));
  return a;
}