Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
educg-net-17291-1894922
Compiler2023-SysYCC-3168
Commits
c2421694
Commit
c2421694
authored
1 year ago
by
TangHaozhe
Browse files
Options
Download
Patches
Plain Diff
chore: homemade test: value zero init test
parent
2575a8e0
master
202308091536-Func139_Perf15
202308101226-Func140_Perf_28
202308101226-Func140_Perf_36
backup/lli
develop
feature/divide2shift_right
feature/merge_bb_new
feature/rm_trivial_bb
final_submit_0
final_submit_1
final_submit_2
final_submit_3
final_submit_4
final_submit_5
final_submit_6
final_submit_7
final_submit_8
0.0.5_F140P36
0.0.4_F140P28
0.0.3_F139P15
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/homemade/zero_init.sy
+53
-0
test/homemade/zero_init.sy
with
53 additions
and
0 deletions
+53
-0
test/homemade/zero_init.sy
0 → 100644
+
53
−
0
View file @
c2421694
int main() {
int zero_0[3][2] = {};
int zero_1[2][4] = {0};
int zero_2[2][4] = {0, {0}};
int zero_3[2][4] = {0, 0, 0, 0, 0, 0, 0, 0};
int zero_4[4][2] = {{0, 0}, {0, 0}, {0, 0}, {0, 0}};
int zero_5[2][4] = {0, 0, 0, 0.0, 0, 0.0, 0, 0};
int none_zero_0[2][4] = {1};
int none_zero_1[2][4] = {1, {0}};
int none_zero_2[2][4] = {0, 0.0, 1};
float zero_f0[3][2] = {};
float zero_f1[2][4] = {0};
float zero_f2[2][4] = {0.0};
float zero_f3[2][4] = {0, {0}};
float zero_f4[2][4] = {0.0, {0.0}};
float zero_f5[2][4] = {0, 0, 0, 0, 0, 0, 0, 0};
float zero_f6[2][4] = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0};
float zero_f7[4][2] = {{0, 0}, {0, 0}, {0, 0}, {0, 0}};
float zero_f8[4][2] = {{0.0, 0.0}, {0.0, 0.0}, {0.0, 0.0}, {0.0, 0.0}};
float zero_f9[2][4] = {0, 0, 0, 0.0, 0, 0.0, 0, 0};
float none_zero_f0[2][4] = {1.0};
float none_zero_f1[2][4] = {1.0, {0}};
float none_zero_f2[2][4] = {0, 0.0, -1.0};
const int const_zero_0[3][2] = {};
const int const_zero_1[2][4] = {0};
// const int const_zero_2[2][4] = {0, {0}};
const int const_zero_3[2][4] = {0, 0, 0, 0, 0, 0, 0, 0};
const int const_zero_4[4][2] = {{0, 0}, {0, 0}, {0, 0}, {0, 0}};
const int const_zero_5[2][4] = {0, 0, 0, 0.0, 0, 0.0, 0, 0};
const int none_const_zero_0[2][4] = {1};
// const int none_const_zero_1[2][4] = {1, {0}};
// const int none_const_zero_2[2][4] = {0, 0.0, 1};
const float const_zero_f0[3][2] = {};
const float const_zero_f1[2][4] = {0};
const float const_zero_f2[2][4] = {0.0};
// const float const_zero_f3[2][4] = {0, {0}};
// const float const_zero_f4[2][4] = {0.0, {0.0}};
const float const_zero_f5[2][4] = {0, 0, 0, 0, 0, 0, 0, 0};
const float const_zero_f6[2][4] = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0};
const float const_zero_f7[4][2] = {{0, 0}, {0, 0}, {0, 0}, {0, 0}};
const float const_zero_f8[4][2] = {{0.0, 0.0}, {0.0, 0.0}, {0.0, 0.0}, {0.0, 0.0}};
const float const_zero_f9[2][4] = {0, 0, 0, 0.0, 0, 0.0, 0, 0};
const float none_const_zero_f0[2][4] = {1.0};
// const float none_const_zero_f1[2][4] = {1.0, {0}};
const float none_const_zero_f2[2][4] = {0, 0.0, -1.0};
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets