aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/adx-addcarryx32-1.c
blob: b0ba6e253df444ca41a7e90ca2dad86d82f14af3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-madx -O2" } */
/* { dg-final { scan-assembler-times "adc\[xl\]" 2 } } */
/* { dg-final { scan-assembler-times "sbbl" 1 } } */

#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);
    c = _addcarry_u32 (c, x, y, sum);
    c = _subborrow_u32 (c, x, y, sum);
}