Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / xgetsetbv.c
blob956db76b5b81e45e3cc8eaa5d7586dcb2ca71848
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mxsave" } */
3 /* { dg-final { scan-assembler-times "xgetbv" 3 } } */
4 /* { dg-final { scan-assembler-times "xsetbv" 3 } } */
6 #include <x86intrin.h>
8 unsigned long long
9 foo (unsigned x, unsigned y)
11 _xsetbv (x, y);
12 return _xgetbv (x);
15 unsigned long long
16 bar (unsigned x, unsigned long long y)
18 _xsetbv (x, y);
19 return _xgetbv (x);
22 unsigned long long
23 baz (void)
25 _xsetbv (0, 0);
26 return _xgetbv (0);