2018-02-09 Sebastian Perta <sebastian.perta@renesas.com>
[official-gcc.git] / gcc / testsuite / gcc.target / arm / builtin_usubl.c
blob99782083d4539424b4de3082c8262deb3a67fb37
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3 /* { dg-require-effective-target arm32 } */
4 extern void overflow_handler ();
6 unsigned long overflow_sub (unsigned long x, unsigned long y)
8 unsigned long r;
10 int ovr = __builtin_usubl_overflow (x, y, &r);
11 if (ovr)
12 overflow_handler ();
14 return r;
17 /* { dg-final { scan-assembler "subs" } } */