summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/rdfsbase-2.c
blob: f319cea57f4bf2fffb822f0107a3592fad7d43d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile { target { ! { ia32 } } } } */
/* { dg-options "-O2 -mfsgsbase" } */
/* { dg-final { scan-assembler "rdfsbase\[ \t]+(%|)rax" } } */

#include <immintrin.h>

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