From 72af0dedf9e18911da65b9a5c4906689e868d9fc Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Mon, 8 Jun 2026 17:10:31 +0800 Subject: [legacy] Add functional and performance test suites --- rcc-legacy/tests/performance/10_hoist-2.sy | 127 +++++++++++++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 rcc-legacy/tests/performance/10_hoist-2.sy (limited to 'rcc-legacy/tests/performance/10_hoist-2.sy') diff --git a/rcc-legacy/tests/performance/10_hoist-2.sy b/rcc-legacy/tests/performance/10_hoist-2.sy new file mode 100644 index 0000000..836fc07 --- /dev/null +++ b/rcc-legacy/tests/performance/10_hoist-2.sy @@ -0,0 +1,127 @@ +//gcc hoist.c sylib.c -include sylib.h -Wall -Wno-unused-result -o binary-hoist && time ./binary-hoist < hoist.in +int loopCount = 0; +int func(int i1, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, int i10, int i11, int i12, int i13, int i14, int i15) +{ + int result = 0; + int i = 0; + while(i