Skip to content

Commit

Permalink
Update driver.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
vacantron authored Mar 4, 2024
1 parent 850e947 commit 87e1c08
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion tests/driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,9 @@ int main()
}
EOF

# optimizer
# optimizers

# common subexpression elimination (CSE)
try_ 1 << EOF
int i = 0;
void func()
Expand All @@ -566,4 +568,15 @@ int main()
}
EOF

# constant folding
try_ 20 << EOF
int main()
{
int a = 2; /* constant assingment */
int b = a; /* assignment via constant representation */
int c = a + b;
int d = c + 8; /* mixed assigment */
return a + b + c + d; /* chained assignment */
}
echo OK

0 comments on commit 87e1c08

Please sign in to comment.