* gcc.target/i386/pr70021.c: Add -mtune=skylake.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr81294-1.c
blob6a15ed0a410ef1b26789ce5d59eaa6db0b39770c
1 /* PR target/81294 */
2 /* { dg-do run } */
3 /* { dg-options "-O2" } */
5 #include <x86intrin.h>
7 int
8 main ()
10 volatile unsigned char c;
11 unsigned int x;
12 volatile unsigned int y, sum_ref;
14 c = 0;
15 x = 1;
16 y = 0;
17 sum_ref = 0x0;
19 /* X = 0x00000001, Y = 0x00000000, C = 0. */
20 c = _subborrow_u32 (c, y, x, &x);
21 /* X = 0xFFFFFFFF, Y = 0x00000000, C = 1. */
22 c = _subborrow_u32 (c, y, x, &x);
23 /* X = 0xFFFFFFFF, Y = 0xFFFFFFFF, C = 1. */
25 if (x != sum_ref)
26 __builtin_abort ();
28 return 0;