summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/rdgsbase-2.c
blob: 1321582506954787907fc62287b0709ecdff722e (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 "rdgsbase\[ \t]+(%|)rax" } } */

#include <immintrin.h>

unsigned long long
read_gs_base64 (void)
{
  return _readgsbase_u64 ();
}