aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/fold-vec-splats-longlong.c
blob: 0e291b7267a4d0062fa1905c4a4b5790806945e9 (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 long long
   inputs produce the right code.  */

/* { dg-do compile { target lp64 } } */
/* { dg-options "-mvsx -O2" } */
/* { dg-require-effective-target powerpc_vsx } */

#include <altivec.h>

vector signed long long
test3s (signed long long x)
{
  return vec_splats (x);
}

vector unsigned long long
test3u (unsigned long long x)
{
  return vec_splats (x);
}

/* { dg-final { scan-assembler-times "xxpermdi|mtvsrdd" 2 } } */