Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.target/arm/builtin_saddll.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O2" } */ /* { dg-require-effective-target arm32 } */ extern void overflow_handler (); long long overflow_add (long long x, long long y) { long long r; int ovr = __builtin_saddll_overflow (x, y, &r); if (ovr) overflow_handler (); return r; } /* { dg-final { scan-assembler "adds" } } */ /* { dg-final { scan-assembler "adcs" } } */