2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / adx-addcarryx64-3.c
blob9d9809d74fecfa8bda48bee640db4c758ae1f520
1 /* { dg-do compile { target { ! ia32 } } } */
2 /* { dg-options "-mno-adx -O2" } */
3 /* { dg-final { scan-assembler-times "adcq" 2 } } */
4 /* { dg-final { scan-assembler-times "sbbq" 1 } } */
6 #include <x86intrin.h>
8 volatile unsigned char c;
9 volatile unsigned long long x, y;
10 unsigned long long *sum;
12 void extern
13 adx_test (void)
15 c = _addcarryx_u64 (c, x, y, sum);
16 c = _addcarry_u64 (c, x, y, sum);
17 c = _subborrow_u64 (c, x, y, sum);