aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pconfig-1.c
blob: a3fc4f411fee4ceaf98812ccece1451004364df8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */
/* { dg-options "-O2 -mpconfig" } */
/* { dg-final { scan-assembler-times "pconfig" 5 } } */

#include <x86intrin.h>

extern unsigned int leaf;

#define PCONFIG_KEY_PROGRAM 0x01

int test ()
{
  size_t D[3] = {1, 2, 3};

  unsigned int res1 = _pconfig_u32 (leaf, D);

  unsigned int res2 = _pconfig_u32 (PCONFIG_KEY_PROGRAM, D);

  return 0;
}