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

#include <immintrin.h>

long long
foo (long long c)
{
  register long long a __asm ("k7") = c;
  long long b = foo (a);
  asm volatile ("" : "+k" (b)); /* { dg-error "inconsistent operand constraints in an 'asm'" } */
  return b;
}