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

#include <x86intrin.h>

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

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