blob: d2e21c1b9d0ecebea681e7aa342363e1680bd24b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
/* Verify that overloaded built-ins for vec_sub with char
inputs produce the right results. */
/* { dg-do compile } */
/* { dg-options "-maltivec" } */
/* { dg-require-effective-target powerpc_altivec } */
#include <altivec.h>
vector signed char
test1 (vector bool char x, vector signed char y)
{
return vec_sub (x, y);
}
vector signed char
test2 (vector signed char x, vector bool char y)
{
return vec_sub (x, y);
}
vector signed char
test3 (vector signed char x, vector signed char y)
{
return vec_sub (x, y);
}
vector unsigned char
test4 (vector bool char x, vector unsigned char y)
{
return vec_sub (x, y);
}
vector unsigned char
test5 (vector unsigned char x, vector bool char y)
{
return vec_sub (x, y);
}
vector unsigned char
test6 (vector unsigned char x, vector unsigned char y)
{
return vec_sub (x, y);
}
/* { dg-final { scan-assembler-times "vsububm" 6 } } */
|