summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/wrfsbase-1.c
blob: 4b849269bb2342c8ea949a1ef4e9c8bb7ad6fb47 (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 "wrfsbase\[ \t]+(%|)edi" } } */

#include <immintrin.h>

void
write_fs_base32 (unsigned int base)
{
  _writefsbase_u32 (base);
}