[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / altivec-16.c
blobc36c3914b1ad333bf6c4abb0f04e79c31f57925e
1 /* This is a compile-only test for interaction of "-maltivec" and "-save-temps". */
2 /* Author: Ziemowit Laski <zlaski@apple.com>. */
3 /* { dg-do compile { target powerpc*-*-* } } */
4 /* { dg-require-effective-target powerpc_altivec_ok } */
5 /* { dg-options "-save-temps -maltivec" } */
7 #include <altivec.h>
9 #define vector_float vector float
10 #define vector_float_foo vector float foo
11 #define vector_float_bar_eq vector float bar =
13 /* NB: Keep the following split across three lines. */
14 vector
15 int
16 a1 = { 100, 200, 300, 400 };
18 vector_float f1 = { 1.0, 2.0, 3.0, 4.0 };
19 vector_float_foo = { 3.0, 4.0, 5.0, 6.0 };
20 vector_float_bar_eq { 8.0, 7.0, 6.0, 5.0 };