PR rtl-optimization/88018
[official-gcc.git] / gcc / testsuite / c-c++-common / torture / builtin-arith-overflow-3.c
blobcc1a44117ad070e4117dee0027bb024818159ef3
1 /* Test __builtin_{add,sub,mul,{s,u}addll,{s,u}subll,{s,u}mulll}_overflow. */
2 /* { dg-do run } */
3 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O0" "-O2" } } */
5 #include "builtin-arith-overflow-1.h"
7 #define U(s, op) s##op##ll
8 TESTS (long long, LLONG_MIN, LLONG_MAX)
9 #undef U
10 #define U(s, op) op
11 TESTS (long long, LLONG_MIN, LLONG_MAX)
13 #undef T
14 #define T(n, t1, t2, tr, v1, v2, vr, b, o) t##n##b ();
16 int
17 main ()
19 TESTS (long long, LLONG_MIN, LLONG_MAX)
20 #undef U
21 #define U(s, op) s##op##ll
22 TESTS (long long, LLONG_MIN, LLONG_MAX)
23 return 0;