aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/pr92661.c
blob: d9500dbfdb71e23c5effd8e25fe65f96d6d046d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do compile } */
/* { dg-options "-w -O2 -mdejagnu-cpu=power9" } */

/* PR92661: The following tests should not ICE, regardless of
   whether the target supports DFP or not.  */

/* Test that a normal builtin function doesn't ICE.  */
int
foo (_Decimal64 src) /* { dg-error "decimal floating-point not supported for this target" "not supported" { target { ! dfp } } } */
{
  return __builtin_dfp_dtstsfi_lt_dd (5, src);
}

/* Test that an overloaded builtin function doesn't ICE.  */
int
bar (_Decimal64 src) /* { dg-error "decimal floating-point not supported for this target" "not supported" { target { ! dfp } } } */
{
  return __builtin_dfp_dtstsfi_lt (5, src);
}