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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
|
/*
* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma version(1)
#pragma rs java_package_name(com.android.rs.typecheck)
#pragma rs_fp_relaxed
// Test initialized and uninitialized variables
char c1;
char c1i = 1;
char2 c2;
char2 c2i = {1, 2};
char3 c3;
char3 c3i = {1, 2, 3};
char4 c4;
char4 c4i = {1, 2, 3, 4};
uchar uc1;
uchar uc1i = 1;
uchar2 uc2;
uchar2 uc2i = {1, 2};
uchar3 uc3;
uchar3 uc3i = {1, 2, 3};
uchar4 uc4;
uchar4 uc4i = {1, 2, 3, 4};
short s1;
short s1i = 1;
short2 s2;
short2 s2i = {1, 2};
short3 s3;
short3 s3i = {1, 2, 3};
short4 s4;
short4 s4i = {1, 2, 3, 4};
ushort us1;
ushort us1i = 1;
ushort2 us2;
ushort2 us2i = {1, 2};
ushort3 us3;
ushort3 us3i = {1, 2, 3};
ushort4 us4;
ushort4 us4i = {1, 2, 3, 4};
int i1;
int i1i = 1;
int2 i2;
int2 i2i = {1, 2};
int3 i3;
int3 i3i = {1, 2, 3};
int4 i4;
int4 i4i = {1, 2, 3, 4};
uint ui1;
uint ui1i = 1;
uint2 ui2;
uint2 ui2i = {1, 2};
uint3 ui3;
uint3 ui3i = {1, 2, 3};
uint4 ui4;
uint4 ui4i = {1, 2, 3, 4};
long l1;
long l1i = 1;
long2 l2;
long2 l2i = {1, 2};
long3 l3;
long3 l3i = {1, 2, 3};
long4 l4;
long4 l4i = {1, 2, 3, 4};
ulong ul1;
ulong ul1i = 1;
ulong2 ul2;
ulong2 ul2i = {1, 2};
ulong3 ul3;
ulong3 ul3i = {1, 2, 3};
ulong4 ul4;
ulong4 ul4i = {1, 2, 3, 4};
float f1;
float f1i = 3.141592265358979f;
float2 f2;
float2 f2i = {1.f, 2.f};
float3 f3;
float3 f3i = {1.f, 2.f, 3.f};
float4 f4;
float4 f4i = {1.f, 2.f, 3.f, 4.f};
double d1;
double d1i = 3.141592265358979;
double2 d2;
double2 d2i = {1, 2};
double3 d3;
double3 d3i = {1, 2, 3};
double4 d4;
double4 d4i = {1, 2, 3, 4};
void RS_KERNEL test_BOOLEAN(bool in) {
}
void RS_KERNEL test_I8(char in) {
}
void RS_KERNEL test_U8(uchar in) {
}
void RS_KERNEL test_I16(short in) {
}
void RS_KERNEL test_U16(ushort in) {
}
void RS_KERNEL test_I32(int in) {
}
void RS_KERNEL test_U32(uint in) {
}
void RS_KERNEL test_I64(long in) {
}
void RS_KERNEL test_U64(ulong in) {
}
void RS_KERNEL test_F32(float in) {
}
void RS_KERNEL test_F64(double in) {
}
|