PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / arm / builtin_usubll.c
blob8d64660a813afda5949f0d217c51984336fad3d7
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3 /* { dg-require-effective-target arm32 } */
4 extern void overflow_handler ();
6 unsigned long long overflow_sub (unsigned long long x, unsigned long long y)
8 unsigned long long r;
10 int ovr = __builtin_usubll_overflow (x, y, &r);
11 if (ovr)
12 overflow_handler ();
14 return r;
17 /* { dg-final { scan-assembler "subs" } } */
18 /* { dg-final { scan-assembler "sbcs" } } */