scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 16e75931200e52fb455e4293e812bc73602c2d34
parent 8e8ce7a93939caeab7fc0e5e149470349746a43f
Author: Roberto E. Vargas Caballero <Roberto E. Vargas Caballero>
Date:   Wed,  4 May 2016 19:07:41 +0200

[cc1] Update test012 and test036 after 8e8ce7a

Diffstat:
Mcc1/tests/test012.c | 76++++++++++++++++++++++++++++++++--------------------------------------------
Mcc1/tests/test036.c | 36+++++++++++++++++-------------------
2 files changed, 49 insertions(+), 63 deletions(-)

diff --git a/cc1/tests/test012.c b/cc1/tests/test012.c @@ -9,65 +9,53 @@ G2 I F "main \ A3 I "x A3 #I0 :I - s L5 A3 -L6 - j L4 + s A3 + v L5 #I0 L5 - t #N1 - v L6 #I0 + k L4 - s L8 A3 + s A3 + v L7 #I0 +L7 + s A3 + v L9 #I0 L9 - s L11 A3 -L12 - j L13 -L14 - h #I1 j L10 + f L11 L11 - t #N2 - v L12 #I0 - f L14 -L10 - j L7 + h #I1 + k L8 - t #N1 - v L9 #I0 -L7 + k +L6 h #I2 +L10 + s A3 + v L13 #I1 L13 - s L16 A3 -L17 h #I3 - j L15 -L16 - t #N1 - v L17 #I1 -L15 - s L19 A3 + k +L12 + s A3 A3 #I2 :I -L20 -L21 +L15 + v L16 #I1 +L16 h #I4 - j L18 -L19 - t #N1 - v L21 #I1 + k +L14 + s A3 + v L18 #I0 L18 - s L23 A3 -L24 h A3 -L25 + v L19 #I1 +L19 h #I1 -L26 + f L20 +L20 h #I1 - j L22 -L23 - t #N3 - v L25 #I1 - v L24 #I0 - f L26 -L22 + k +L17 } */ diff --git a/cc1/tests/test036.c b/cc1/tests/test036.c @@ -3,7 +3,7 @@ name: TEST036 description: Duff's device error: -test036.c:60: warning: type defaults to 'int' in declaration +test036.c:58: warning: type defaults to 'int' in declaration output: G5 I F "send { @@ -13,39 +13,37 @@ R3 I "count \ R7 I "n R7 R3 #I7 +I #I8 /I :I - s L9 R3 #I8 %I -L10 + s R3 #I8 %I + v L9 #I0 +L9 e -L11 +L10 + R1 @I R2 #N2 :iP @I :I + v L12 #I7 +L12 R1 @I R2 #N2 :iP @I :I + v L13 #I6 L13 R1 @I R2 #N2 :iP @I :I + v L14 #I5 L14 R1 @I R2 #N2 :iP @I :I + v L15 #I4 L15 R1 @I R2 #N2 :iP @I :I + v L16 #I3 L16 R1 @I R2 #N2 :iP @I :I + v L17 #I2 L17 R1 @I R2 #N2 :iP @I :I + v L18 #I1 L18 R1 @I R2 #N2 :iP @I :I -L19 - R1 @I R2 #N2 :iP @I :I - y L11 R7 #I1 :-I #I0 >I + y L10 R7 #I1 :-I #I0 >I b -L12 - j L8 -L9 - t #N8 - v L19 #I1 - v L18 #I2 - v L17 #I3 - v L16 #I4 - v L15 #I5 - v L14 #I6 - v L13 #I7 - v L10 #I0 +L11 + k L8 } */