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

#include <immintrin.h>

unsigned int
read_fs_base32 (void)
{
  return _readfsbase_u32 ();
}