summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/xsave-1.c
blob: 9eee59739211be5e1e04c152fcfeb1abbf983b8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-mxsave -O2" } */
/* { dg-final { scan-assembler "xsave\[ \\t\]" } } */

#include <x86intrin.h>

void extern
xsave_test (void)
{
  char xsave_region [512] __attribute__((aligned(64)));
  _xsave (xsave_region, ((long long) 0xA0000000F));
}