aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/aarch64/vect-mull.x
blob: 39ec43d77e3f8671329448850b49a93499750b4f (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

typedef signed char *__restrict__ pRSINT8;
typedef signed short *__restrict__ pRSINT16;
typedef signed int *__restrict__ pRSINT32;
typedef signed long long *__restrict__ pRSINT64;

typedef unsigned char *__restrict__ pRUINT8;
typedef unsigned short *__restrict__ pRUINT16;
typedef unsigned int *__restrict__ pRUINT32;
typedef unsigned long long *__restrict__ pRUINT64;

typedef signed short SH;
typedef unsigned short UH;
typedef signed int SS;
typedef unsigned int US;
typedef signed long long SLL;
typedef unsigned long long ULL;

#define DEF_MULLB(sign)   \
		   void widen_mult_##sign##b  (pR##sign##INT##16 a, \
					       pR##sign##INT##8 b, \
					       pR##sign##INT##8 c) \
		   { \
			int i;  \
			for (i=0; i<N; i++)     \
			  a[i] = (sign##H)b[i] * c[i];   \
		   }

#define DEF_MULLH(sign)   \
		   void widen_mult_##sign##h (pR##sign##INT##32 a, \
					      pR##sign##INT##16 b, \
					      pR##sign##INT##16 c) \
		   { \
			int i;  \
			for (i=0; i<N; i++)     \
			  a[i] = (sign##S)b[i] * c[i];   \
		   }
#define DEF_MULLS(sign)   \
		   void widen_mult_##sign##s (pR##sign##INT##64 a, \
					      pR##sign##INT##32 b, \
					      pR##sign##INT##32 c) \
		   { \
			int i;  \
			for (i=0; i<N; i++)     \
			  a[i] = (sign##LL)b[i] * c[i];   \
		   }

#define DEF_MULL2(x) x (S) \
		     x (U)