[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr108272-3.c
blob634a529b5c8a99195856a5f17acb77e52a17a110
1 /* { dg-require-effective-target powerpc_p9modulo_ok } */
2 /* If the default cpu type is power10 or later, type __vector_quad is
3 supported. To keep the test point available all the time, this case
4 specifies -mdejagnu-cpu=power9 here. */
5 /* { dg-options "-mdejagnu-cpu=power9" } */
7 /* Verify there is no ICE and don't check the error messages on unsupported
8 type since they could be fragile and are not test points of this case. */
10 /* { dg-excess-errors "pr108272-3" } */
12 void
13 foo (void)
15 volatile __vector_quad acc;
16 asm("#..." : "=d"(acc));