1 /*
2  * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include <climits>
17 #include <gtest/gtest.h>
18 #include "../Deqpgles2BaseFunc.h"
19 #include "../ActsDeqpgles20008TestSuite.h"
20 #include "shrinkdefine.h"
21 
22 using namespace std;
23 using namespace testing::ext;
24 using namespace OHOS;
25 
26 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007974,
27         "dEQP-GLES2.functional.shaders.constant_expressio",
28         "ns.builtin_functions.exponential.pow_float_vertex");
29 
30 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007975,
31         "dEQP-GLES2.functional.shaders.constant_expression",
32         "s.builtin_functions.exponential.pow_float_fragment");
33 
34 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007976,
35         "dEQP-GLES2.functional.shaders.constant_expressio",
36         "ns.builtin_functions.exponential.pow_vec2_vertex");
37 
38 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007977,
39         "dEQP-GLES2.functional.shaders.constant_expression",
40         "s.builtin_functions.exponential.pow_vec2_fragment");
41 
42 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007978,
43         "dEQP-GLES2.functional.shaders.constant_expressio",
44         "ns.builtin_functions.exponential.pow_vec3_vertex");
45 
46 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007979,
47         "dEQP-GLES2.functional.shaders.constant_expression",
48         "s.builtin_functions.exponential.pow_vec3_fragment");
49 
50 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007980,
51         "dEQP-GLES2.functional.shaders.constant_expressio",
52         "ns.builtin_functions.exponential.pow_vec4_vertex");
53 
54 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007981,
55         "dEQP-GLES2.functional.shaders.constant_expression",
56         "s.builtin_functions.exponential.pow_vec4_fragment");
57 
58 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007982,
59         "dEQP-GLES2.functional.shaders.constant_expressio",
60         "ns.builtin_functions.exponential.exp_float_vertex");
61 
62 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007983,
63         "dEQP-GLES2.functional.shaders.constant_expression",
64         "s.builtin_functions.exponential.exp_float_fragment");
65 
66 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007984,
67         "dEQP-GLES2.functional.shaders.constant_expressio",
68         "ns.builtin_functions.exponential.exp_vec2_vertex");
69 
70 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007985,
71         "dEQP-GLES2.functional.shaders.constant_expression",
72         "s.builtin_functions.exponential.exp_vec2_fragment");
73 
74 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007986,
75         "dEQP-GLES2.functional.shaders.constant_expressio",
76         "ns.builtin_functions.exponential.exp_vec3_vertex");
77 
78 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007987,
79         "dEQP-GLES2.functional.shaders.constant_expression",
80         "s.builtin_functions.exponential.exp_vec3_fragment");
81 
82 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007988,
83         "dEQP-GLES2.functional.shaders.constant_expressio",
84         "ns.builtin_functions.exponential.exp_vec4_vertex");
85 
86 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007989,
87         "dEQP-GLES2.functional.shaders.constant_expression",
88         "s.builtin_functions.exponential.exp_vec4_fragment");
89 
90 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007990,
91         "dEQP-GLES2.functional.shaders.constant_expressio",
92         "ns.builtin_functions.exponential.log_float_vertex");
93 
94 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007991,
95         "dEQP-GLES2.functional.shaders.constant_expression",
96         "s.builtin_functions.exponential.log_float_fragment");
97 
98 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007992,
99         "dEQP-GLES2.functional.shaders.constant_expressio",
100         "ns.builtin_functions.exponential.log_vec2_vertex");
101 
102 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007993,
103         "dEQP-GLES2.functional.shaders.constant_expression",
104         "s.builtin_functions.exponential.log_vec2_fragment");
105 
106 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007994,
107         "dEQP-GLES2.functional.shaders.constant_expressio",
108         "ns.builtin_functions.exponential.log_vec3_vertex");
109 
110 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007995,
111         "dEQP-GLES2.functional.shaders.constant_expression",
112         "s.builtin_functions.exponential.log_vec3_fragment");
113 
114 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007996,
115         "dEQP-GLES2.functional.shaders.constant_expressio",
116         "ns.builtin_functions.exponential.log_vec4_vertex");
117 
118 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007997,
119         "dEQP-GLES2.functional.shaders.constant_expression",
120         "s.builtin_functions.exponential.log_vec4_fragment");
121 
122 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007998,
123         "dEQP-GLES2.functional.shaders.constant_expression",
124         "s.builtin_functions.exponential.exp2_float_vertex");
125 
126 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007999,
127         "dEQP-GLES2.functional.shaders.constant_expressions",
128         ".builtin_functions.exponential.exp2_float_fragment");
129 
130 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008000,
131         "dEQP-GLES2.functional.shaders.constant_expressio",
132         "ns.builtin_functions.exponential.exp2_vec2_vertex");
133 
134 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008001,
135         "dEQP-GLES2.functional.shaders.constant_expression",
136         "s.builtin_functions.exponential.exp2_vec2_fragment");
137 
138 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008002,
139         "dEQP-GLES2.functional.shaders.constant_expressio",
140         "ns.builtin_functions.exponential.exp2_vec3_vertex");
141 
142 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008003,
143         "dEQP-GLES2.functional.shaders.constant_expression",
144         "s.builtin_functions.exponential.exp2_vec3_fragment");
145 
146 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008004,
147         "dEQP-GLES2.functional.shaders.constant_expressio",
148         "ns.builtin_functions.exponential.exp2_vec4_vertex");
149 
150 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008005,
151         "dEQP-GLES2.functional.shaders.constant_expression",
152         "s.builtin_functions.exponential.exp2_vec4_fragment");
153 
154 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008006,
155         "dEQP-GLES2.functional.shaders.constant_expression",
156         "s.builtin_functions.exponential.log2_float_vertex");
157 
158 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008007,
159         "dEQP-GLES2.functional.shaders.constant_expressions",
160         ".builtin_functions.exponential.log2_float_fragment");
161 
162 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008008,
163         "dEQP-GLES2.functional.shaders.constant_expressio",
164         "ns.builtin_functions.exponential.log2_vec2_vertex");
165 
166 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008009,
167         "dEQP-GLES2.functional.shaders.constant_expression",
168         "s.builtin_functions.exponential.log2_vec2_fragment");
169 
170 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008010,
171         "dEQP-GLES2.functional.shaders.constant_expressio",
172         "ns.builtin_functions.exponential.log2_vec3_vertex");
173 
174 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008011,
175         "dEQP-GLES2.functional.shaders.constant_expression",
176         "s.builtin_functions.exponential.log2_vec3_fragment");
177 
178 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008012,
179         "dEQP-GLES2.functional.shaders.constant_expressio",
180         "ns.builtin_functions.exponential.log2_vec4_vertex");
181 
182 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008013,
183         "dEQP-GLES2.functional.shaders.constant_expression",
184         "s.builtin_functions.exponential.log2_vec4_fragment");
185 
186 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008014,
187         "dEQP-GLES2.functional.shaders.constant_expression",
188         "s.builtin_functions.exponential.sqrt_float_vertex");
189 
190 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008015,
191         "dEQP-GLES2.functional.shaders.constant_expressions",
192         ".builtin_functions.exponential.sqrt_float_fragment");
193 
194 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008016,
195         "dEQP-GLES2.functional.shaders.constant_expressio",
196         "ns.builtin_functions.exponential.sqrt_vec2_vertex");
197 
198 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008017,
199         "dEQP-GLES2.functional.shaders.constant_expression",
200         "s.builtin_functions.exponential.sqrt_vec2_fragment");
201 
202 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008018,
203         "dEQP-GLES2.functional.shaders.constant_expressio",
204         "ns.builtin_functions.exponential.sqrt_vec3_vertex");
205 
206 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008019,
207         "dEQP-GLES2.functional.shaders.constant_expression",
208         "s.builtin_functions.exponential.sqrt_vec3_fragment");
209 
210 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008020,
211         "dEQP-GLES2.functional.shaders.constant_expressio",
212         "ns.builtin_functions.exponential.sqrt_vec4_vertex");
213 
214 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008021,
215         "dEQP-GLES2.functional.shaders.constant_expression",
216         "s.builtin_functions.exponential.sqrt_vec4_fragment");
217 
218 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008022,
219         "dEQP-GLES2.functional.shaders.constant_expressions.b",
220         "uiltin_functions.exponential.inversesqrt_float_vertex");
221 
222 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008023,
223         "dEQP-GLES2.functional.shaders.constant_expressions.bu",
224         "iltin_functions.exponential.inversesqrt_float_fragment");
225 
226 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008024,
227         "dEQP-GLES2.functional.shaders.constant_expressions.b",
228         "uiltin_functions.exponential.inversesqrt_vec2_vertex");
229 
230 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008025,
231         "dEQP-GLES2.functional.shaders.constant_expressions.bu",
232         "iltin_functions.exponential.inversesqrt_vec2_fragment");
233 
234 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008026,
235         "dEQP-GLES2.functional.shaders.constant_expressions.b",
236         "uiltin_functions.exponential.inversesqrt_vec3_vertex");
237 
238 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008027,
239         "dEQP-GLES2.functional.shaders.constant_expressions.bu",
240         "iltin_functions.exponential.inversesqrt_vec3_fragment");
241 
242 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008028,
243         "dEQP-GLES2.functional.shaders.constant_expressions.b",
244         "uiltin_functions.exponential.inversesqrt_vec4_vertex");
245 
246 static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_008029,
247         "dEQP-GLES2.functional.shaders.constant_expressions.bu",
248         "iltin_functions.exponential.inversesqrt_vec4_fragment");
249