OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vmx/] [debug-2.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
#include <altivec.h>
2
vector unsigned char u8 = {1, 2, 3, 4, 5, 6, 7, 8,
3
                           9, 10,11,12,13,14,15,16};
4
vector signed char s8 = {1, 2, 3, 4, 5, 6, 7, 8,
5
                         9, 10,11,12,13,14,15,16};
6
vector bool char b8 = {0, -1, 0, -1, 0, 0, 0, 0,
7
                      -1, -1, -1, -1, 0, -1, 0, -1};
8
vector unsigned short u16 = {1, 2, 3, 4, 5, 6, 7, 8};
9
vector signed short s16 = {1, 2, 3, 4, 5, 6, 7, 8};
10
vector bool short b16 = {-1, 0, -1, 0, -1, -1, 0, 0};
11
vector unsigned int u32 = {1, 2, 3, 4};
12
vector signed int s32 = {1, 2, 3, 4};
13
vector bool int b32 = {0, -1, -1, 0};
14
vector float f32 = {1, 2, 3, 4};
15
vector pixel p16 = {1, 2, 3, 4, 5, 6, 7, 8};
16
 
17
static void f_u8(vector unsigned char *p) {}
18
static void f_s8(vector signed char *p) {}
19
static void f_b8(vector bool char *p) {}
20
static void f_u16(vector unsigned short *p) {}
21
static void f_s16(vector signed short *p) {}
22
static void f_b16(vector bool short *p) {}
23
static void f_u32(vector unsigned int *p) {}
24
static void f_s32(vector signed int *p) {}
25
static void f_b32(vector bool int *p) {}
26
static void f_f32(vector float *p) {}
27
static void f_p16(vector pixel *p) {}
28
 
29
int main() {
30
  f_u8(&u8);
31
  f_s8(&s8);
32
  f_b8(&b8);
33
  f_u16(&u16);
34
  f_s16(&s16);
35
  f_b16(&b16);
36
  f_u32(&u32);
37
  f_s32(&s32);
38
  f_b32(&b32);
39
  f_f32(&f32);
40
  f_p16(&p16);
41
  return 0;
42
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.