[testsuite] Fix directives order
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-mule-char.c
blob02d9789f86f17070f3bf60d5c687a50477131eab
1 /* Verify that overloaded built-ins for vec_mule,vec_mulo with char
2 inputs produce the right results. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_altivec_ok } */
6 /* { dg-options "-maltivec -O2" } */
8 #include <altivec.h>
10 vector signed short
11 test_even (vector signed char x, vector signed char y)
13 return vec_mule (x, y);
16 vector unsigned short
17 test_uns_even (vector unsigned char x, vector unsigned char y)
19 return vec_mule (x, y);
22 vector signed short
23 test_odd (vector signed char x, vector signed char y)
25 return vec_mulo (x, y);
28 vector unsigned short
29 test_uns_odd (vector unsigned char x, vector unsigned char y)
31 return vec_mulo (x, y);
34 /* { dg-final { scan-assembler-times "vmuleub" 1 } } */
35 /* { dg-final { scan-assembler-times "vmulesb" 1 } } */
36 /* { dg-final { scan-assembler-times "vmuloub" 1 } } */
37 /* { dg-final { scan-assembler-times "vmulosb" 1 } } */