summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/wrgsbase-1.c
blob: 15d2d7ffb9c0c74930dffbf6636f5d9f65d2925c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-require-effective-target lp64 } */
/* { dg-options "-O2 -mfsgsbase" } */
/* { dg-final { scan-assembler "wrgsbase\[ \t]+(%|)edi" } } */

#include <immintrin.h>

void
write_gs_base32 (unsigned int base)
{
  _writegsbase_u32 (base);
}