2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / adx-addcarryx32-3.c
blobd804867a77ea592260c1e8d99d88b6247a5579d6
1 /* { dg-do compile } */
2 /* { dg-options "-mno-adx -O2" } */
3 /* { dg-final { scan-assembler-times "adcl" 2 } } */
4 /* { dg-final { scan-assembler-times "sbbl" 1 } } */
6 #include <x86intrin.h>
8 volatile unsigned char c;
9 volatile unsigned int x, y;
10 unsigned int *sum;
12 void extern
13 adx_test (void)
15 c = _addcarryx_u32 (c, x, y, sum);
16 c = _addcarry_u32 (c, x, y, sum);
17 c = _subborrow_u32 (c, x, y, sum);