blob: 1834d9036672c01bcc87802682f188ae4f9c0656 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/* Verify that overloaded built-ins for vec_mul with char
inputs produce the right results. */
/* { dg-do compile } */
/* { dg-options "-maltivec" } */
/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
vector signed char
test3 (vector signed char x, vector signed char y)
{
return vec_mul (x, y);
}
vector unsigned char
test6 (vector unsigned char x, vector unsigned char y)
{
return vec_mul (x, y);
}
/* { dg-final { scan-assembler-times "\[ \t\]vmulesb" 2 } } */
/* { dg-final { scan-assembler-times "\[ \t\]vmulosb" 2 } } */
|