summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/wrfsbase-2.c
blob: 5e1762dfa3d07d1aae1bfbf6b41bcde957ab1fbc (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]+(%|)rdi" } } */

#include <immintrin.h>

void
write_fs_base64 (unsigned long long base)
{
  _writefsbase_u64 (base);
}