libstdc++: Move gcc.gnu.org and sourceware.org links to https
[official-gcc.git] / gcc / testsuite / gcc.target / arm / builtin_saddll.c
blob62fe6eff01fca5e7d94757bde1f6831ffb7164f0
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3 /* { dg-require-effective-target arm32 } */
4 extern void overflow_handler ();
6 long long overflow_add (long long x, long long y)
8 long long r;
10 int ovr = __builtin_saddll_overflow (x, y, &r);
11 if (ovr)
12 overflow_handler ();
14 return r;
17 /* { dg-final { scan-assembler "adds" } } */
18 /* { dg-final { scan-assembler "adcs" } } */