PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / adx-addcarryx64-1.c
blobcbe19856c6fd225b164353009d14d52dc1963632
1 /* { dg-do compile { target { ! ia32 } } } */
2 /* { dg-options "-madx -O2" } */
3 /* { dg-final { scan-assembler-times "adc\[xq\]" 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);