[RS6000] Tests that use int128_t and -m32
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / test_fpscr_drn_builtin_error.c
blob028ab0b6d6670cba9d7f60fffca6555c7ea0f2bf
1 /* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
2 /* { dg-require-effective-target hard_dfp } */
3 /* { dg-options "-O2 -std=c99" } */
5 int main ()
8 /* Test builin with out of range arguments. The builtin
9 __builtin_set_fpscr_drn() also support a variable as an argument but
10 can't test variable value at compile time. */
12 __builtin_set_fpscr_drn(-1); /* { dg-error "Argument must be a value between 0 and 7" } */
13 __builtin_set_fpscr_drn(8); /* { dg-error "Argument must be a value between 0 and 7" } */