aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/avx10_1-3.c
blob: a176f2749ce68e8ae6e6e82f8fe6dae1127fc80a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-O2 -march=x86-64 -mavx10.1-256" } */

#include <immintrin.h>

int
foo (int c)
{
  register int a __asm ("k7") = c;
  int b = foo (a);
  asm volatile ("" : "+k" (b));
  return b;
}