summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/rdfsbase-2.c
blob: 40b8f4a999f02e4d5deab8f9a1c26ea73fe63931 (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]+(%|)rax" } } */

#include <immintrin.h>

unsigned long long
read_fs_base64 (void)
{
  return _readfsbase_u64 ();
}