2017-08-28 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-mult-float.c
blob619cd6eaed8b6aaeca7cbdab517044d8ab65fc00
1 /* Verify that overloaded built-ins for vec_mul with float
2 inputs produce the right results. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_altivec_ok } */
6 /* { dg-options "-maltivec -mvsx" } */
8 #include <altivec.h>
10 vector float
11 test1 (vector float x, vector float y)
13 return vec_mul (x, y);
16 /* { dg-final { scan-assembler-times "\[ \t\]xvmulsp" 1 } } */