aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/wrgsbase-2.c
blob: cf94750842360616851cccd6e5ae029080bdc5b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile { target { ! { ia32 } } } } */
/* { dg-options "-O2 -mfsgsbase" } */
/* { dg-final { scan-assembler "wrgsbase\[ \t]+(%|)(rdi|rcx)" } } */

#include <immintrin.h>

void
write_gs_base64 (unsigned long long base)
{
  _writegsbase_u64 (base);
}