blob: 98c65613437c0463d84ed7e99e071b2d07ad35de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* Verify that overloaded built-ins for vec_splat with int
inputs produce the right code. */
/* { dg-do compile { target lp64 } } */
/* { dg-options "-maltivec -O2 " } */
/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
vector signed int
test3s (signed int x)
{
return vec_splats (x);
}
vector unsigned int
test3u (unsigned int x)
{
return vec_splats (x);
}
/* { dg-final { scan-assembler-times {\mvspltw\M|\mxxspltw\M|\mmtvsrws\M} 2 } } */
|