aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/adx-addcarryx32-1.c
blob: daf5779b1963ea40119c041fa86d314d87fcc507 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-madx -O2" } */
/* { dg-final { scan-assembler "adcx" } } */

#include <x86intrin.h>

volatile unsigned char c;
volatile unsigned int x, y;
unsigned int *sum;

void extern
adx_test (void)
{
    c = _addcarryx_u32 (c, x, y, sum);
}