summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/dfp/dtstsfi-37.c
blob: dc4c8ecdd00f3ed70cf9ef327fab9c522307d4d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-require-effective-target powerpc_p9vector_ok } */
/* { dg-options "-mdejagnu-cpu=power9" } */

#include <altivec.h>

int doTestBCDSignificance (_Decimal128 *p)
{
  _Decimal128 source = *p;

  return __builtin_dfp_dtstsfi_gt_td (65, source);	/* { dg-error "argument 1 must be a 6-bit unsigned literal" } */
}