summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vmx/x-02.c
blob: 4ddcc0c00dd8b40a20034f4bbe4fad21d2b55af2 (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
#include <altivec.h>

static vector bool char
g(vector unsigned char, vector bool char);

static int q(void);

static vector bool char
f(vector bool char b, vector unsigned char d) 
{
  vector bool char *p = &b;
  *p = g(d,b);
  return q() ? *p : b;
}

static vector bool char b8;
static vector unsigned char u8;

static vector bool char
g(vector unsigned char a, vector bool char b)
{
  return b8;
}

static int q ()
{
  return 1;
}

int main() 
{ 
  f(b8, u8);
  return 0; 
}