blob: bdd068eec84b2075e3a7473f13b7af0ea4dab92d (
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_sel with
double inputs for VSX produce the right code. */
/* { dg-do compile } */
/* { dg-options "-mdejagnu-cpu=power8 -mvsx -O2" } */
/* { dg-require-effective-target powerpc_vsx } */
#include <altivec.h>
vector double
test2_0 (vector double x, vector double y, vector bool long long z)
{
return vec_sel (x, y, z);
}
vector double
test2_1 (vector double x, vector double y, vector unsigned long long z)
{
return vec_sel (x, y, z);
}
/* { dg-final { scan-assembler-times "xxsel" 2 } } */
|