blob: 028ab0b6d6670cba9d7f60fffca6555c7ea0f2bf [file] [log] [blame]
/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
/* { dg-require-effective-target hard_dfp } */
/* { dg-options "-O2 -std=c99" } */
int main ()
{
/* Test builin with out of range arguments. The builtin
__builtin_set_fpscr_drn() also support a variable as an argument but
can't test variable value at compile time. */
__builtin_set_fpscr_drn(-1); /* { dg-error "Argument must be a value between 0 and 7" } */
__builtin_set_fpscr_drn(8); /* { dg-error "Argument must be a value between 0 and 7" } */
}