annotate gcc/testsuite/c-c++-common/torture/builtin-arith-overflow-11.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Test __builtin_{add,sub}_overflow on {,un}signed long long int. */
kono
parents:
diff changeset
2 /* { dg-do run } */
kono
parents:
diff changeset
3 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O0" "-O2" } } */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 typedef signed long long int S;
kono
parents:
diff changeset
6 typedef unsigned long long int U;
kono
parents:
diff changeset
7 #define COND 1
kono
parents:
diff changeset
8 #define SHIFT ((__SIZEOF_LONG_LONG__ - 1) * __CHAR_BIT__)
kono
parents:
diff changeset
9 #define S_MAX __LONG_LONG_MAX__
kono
parents:
diff changeset
10 #define S_MIN (-__LONG_LONG_MAX__ - 1)
kono
parents:
diff changeset
11 #if __SIZEOF_INT128__ > __SIZEOF_LONG_LONG__
kono
parents:
diff changeset
12 typedef __int128 W;
kono
parents:
diff changeset
13 #else
kono
parents:
diff changeset
14 #undef COND
kono
parents:
diff changeset
15 #define COND 0
kono
parents:
diff changeset
16 #endif
kono
parents:
diff changeset
17 #include "builtin-arith-overflow-7.c"