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