aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/dfp/pr79487.c
blob: f76ddeeac37c42d1ce1862ae227dd907a90d37a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR target/79487 */
/* { dg-options "-O2" } */

int
main ()
{
  _Decimal32 a = (-9223372036854775807LL - 1LL); 
  _Decimal32 b = -9.223372E+18DF;
  if (b - a != 0.0DF)
    __builtin_abort ();
  _Decimal64 c = (-9223372036854775807LL - 1LL); 
  _Decimal64 d = -9.223372036854776E+18DD;
  if (d - c != 0.0DD)
    __builtin_abort ();
  return 0;
}