blob: 54011805a1c534e738e48b116b931885c7d6f333 (
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 short
inputs produce the right results. */
/* { dg-do compile } */
/* { dg-options "-maltivec" } */
/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
vector signed short
test3 (vector signed short x, vector signed short y)
{
return vec_mul (x, y);
}
vector unsigned short
test6 (vector unsigned short x, vector unsigned short y)
{
return vec_mul (x, y);
}
/* { dg-final { scan-assembler-times "\[ \t\]vmladduhm" 2 } } */
|