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