Use conditional internal functions in if-conversion
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-mult-int.c
blobb536bcedaa9fd869239be5a08b3231ca8c0b353b
1 /* Verify that overloaded built-ins for vec_mul with int
2 inputs produce the right results. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_p8vector_ok } */
6 /* { dg-options "-mpower8-vector" } */
8 #include <altivec.h>
10 vector signed int
11 test3 (vector signed int x, vector signed int y)
13 return vec_mul (x, y);
16 vector unsigned int
17 test6 (vector unsigned int x, vector unsigned int y)
19 return vec_mul (x, y);
22 /* { dg-final { scan-assembler-times "\[ \t\]vmuluwm" 2 } } */