* gcc.target/powerpc/builtins-1-be.c <vclzb>: Rename duplicate test
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-sub-floatdouble.c
blob116f15e66887745814df1e6a9451994890fe919a
1 /* Verify that overloaded built-ins for vec_sub with float and
2 double inputs for VSX produce the right results. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_vsx_ok } */
6 /* { dg-options "-mvsx" } */
8 #include <altivec.h>
10 vector float
11 test1 (vector float x, vector float y)
13 return vec_sub (x, y);
16 vector double
17 test2 (vector double x, vector double y)
19 return vec_sub (x, y);
22 /* { dg-final { scan-assembler-times "xvsubsp" 1 } } */
23 /* { dg-final { scan-assembler-times "xvsubdp" 1 } } */