aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/vmx/1b-03.c
blob: 2f8f816ba238726c092930ff939d636c93ccc684 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#include <altivec.h>
int main()
{
  vector unsigned char u8;
  vector signed char s8;
  vector bool char b8;
  vector unsigned short u16;
  vector signed short s16;
  vector bool short b16;
  vector unsigned int u32;
  vector signed int s32;
  vector bool int b32;
  vector float f32;
  vector pixel p16;

  vector unsigned char const u8c;
  vector signed char const s8c;
  vector bool char const b8c;
  vector unsigned short const u16c;
  vector signed short const s16c;
  vector bool short const b16c;
  vector unsigned int const u32c;
  vector signed int const s32c;
  vector bool int const b32c;
  vector float const f32c;
  vector pixel const p16c;

  vector unsigned char volatile u8v;
  vector signed char volatile s8v;
  vector bool char volatile b8v;
  vector unsigned short volatile u16v;
  vector signed short volatile s16v;
  vector bool short volatile b16v;
  vector unsigned int volatile u32v;
  vector signed int volatile s32v;
  vector bool int volatile b32v;
  vector float volatile f32v;
  vector pixel volatile p16v;

  const vector unsigned char u8c_;
  const vector signed char s8c_;
  const vector bool char b8c_;
  const vector unsigned short u16c_;
  const vector signed short s16c_;
  const vector bool short b16c_;
  const vector unsigned int u32c_;
  const vector signed int s32c_;
  const vector bool int b32c_;
  const vector float f32c_;
  const vector pixel p16c_;

  volatile vector unsigned char u8v_;
  volatile vector signed char s8v_;
  volatile vector bool char b8v_;
  volatile vector unsigned short u16v_;
  volatile vector signed short s16v_;
  volatile vector bool short b16v_;
  volatile vector unsigned int u32v_;
  volatile vector signed int s32v_;
  volatile vector bool int b32v_;
  volatile vector float f32v_;
  volatile vector pixel p16v_;
  return 0;
}