From 2015c17d259146c66501c73e26ea1b20c51ea868 Mon Sep 17 00:00:00 2001 From: jespergravgaard Date: Mon, 19 Mar 2018 01:22:04 +0100 Subject: [PATCH] Updated fragment reference --- .../test/ref/fragments-assignment-unary.log | 79 ++++++++++++++++--- 1 file changed, 66 insertions(+), 13 deletions(-) diff --git a/src/test/java/dk/camelot64/kickc/test/ref/fragments-assignment-unary.log b/src/test/java/dk/camelot64/kickc/test/ref/fragments-assignment-unary.log index 2b4506394..2f42ac453 100644 --- a/src/test/java/dk/camelot64/kickc/test/ref/fragments-assignment-unary.log +++ b/src/test/java/dk/camelot64/kickc/test/ref/fragments-assignment-unary.log @@ -53,7 +53,9 @@ vbuaa=_inc__deref_pbuz1 < vbuaa=_inc_vbuaa < vbuaa=vbuaa_plus_1 - clobber:A Y c adc #1 CANNOT SYNTHESIZE vbuaa=_neg__deref_pbuz1 CANNOT SYNTHESIZE vbuaa=_pos__deref_pbuz1 -CANNOT SYNTHESIZE vbuaa=_bnot__deref_pbuc1 +*vbuaa=_bnot__deref_pbuc1 - clobber:A cycles:6.0 + lda {c1} + eor #$ff vbuaa=_dec__deref_pbuc1 < vbuaa=_dec_vbuaa < vbuaa=vbuaa_minus_1 - clobber:A cycles:8.0 lda {c1} sec @@ -232,7 +234,10 @@ vbuxx=_inc__deref_pbuz1 < vbuxx=_inc_vbuaa < vbuxx=_inc_vbuxx - clobber:A X Y c inx CANNOT SYNTHESIZE vbuxx=_neg__deref_pbuz1 CANNOT SYNTHESIZE vbuxx=_pos__deref_pbuz1 -CANNOT SYNTHESIZE vbuxx=_bnot__deref_pbuc1 +vbuxx=_bnot__deref_pbuc1 < vbuaa=_bnot__deref_pbuc1 - clobber:A X cycles:8.0 + lda {c1} + eor #$ff + tax vbuxx=_dec__deref_pbuc1 < vbuxx=_dec_vbuxx - clobber:X cycles:6.0 ldx {c1} dex @@ -389,7 +394,10 @@ vbuyy=_inc__deref_pbuz1 < vbuyy=_inc_vbuaa < vbuyy=_inc_vbuyy - clobber:A Y cyc iny CANNOT SYNTHESIZE vbuyy=_neg__deref_pbuz1 CANNOT SYNTHESIZE vbuyy=_pos__deref_pbuz1 -CANNOT SYNTHESIZE vbuyy=_bnot__deref_pbuc1 +vbuyy=_bnot__deref_pbuc1 < vbuaa=_bnot__deref_pbuc1 - clobber:A Y cycles:8.0 + lda {c1} + eor #$ff + tay vbuyy=_dec__deref_pbuc1 < vbuyy=_dec_vbuyy - clobber:Y cycles:6.0 ldy {c1} dey @@ -624,7 +632,10 @@ vbuz1=_inc__deref_pbuz2 < vbuaa=_inc__deref_pbuz1 < vbuaa=_inc_vbuaa < vbuaa=vbu sta {z1} CANNOT SYNTHESIZE vbuz1=_neg__deref_pbuz2 CANNOT SYNTHESIZE vbuz1=_pos__deref_pbuz2 -CANNOT SYNTHESIZE vbuz1=_bnot__deref_pbuc1 +vbuz1=_bnot__deref_pbuc1 < vbuaa=_bnot__deref_pbuc1 - clobber:A cycles:9.0 + lda {c1} + eor #$ff + sta {z1} vbuz1=_dec__deref_pbuc1 < vbuaa=_dec__deref_pbuc1 < vbuaa=_dec_vbuaa < vbuaa=vbuaa_minus_1 - clobber:A cycles:11.0 lda {c1} sec @@ -955,7 +966,11 @@ _deref_pbuz1=_inc__deref_pbuz2 < vbuaa=_inc__deref_pbuz1 < vbuaa=_inc_vbuaa < vb sta ({z1}),y CANNOT SYNTHESIZE _deref_pbuz1=_neg__deref_pbuz2 CANNOT SYNTHESIZE _deref_pbuz1=_pos__deref_pbuz2 -CANNOT SYNTHESIZE _deref_pbuz1=_bnot__deref_pbuc1 +_deref_pbuz1=_bnot__deref_pbuc1 < vbuaa=_bnot__deref_pbuc1 - clobber:A Y cycles:14.0 + lda {c1} + eor #$ff + ldy #0 + sta ({z1}),y _deref_pbuz1=_dec__deref_pbuc1 < vbuaa=_dec__deref_pbuc1 < vbuaa=_dec_vbuaa < vbuaa=vbuaa_minus_1 - clobber:A Y cycles:16.0 lda {c1} sec @@ -1206,14 +1221,20 @@ _deref_pbuc1=_inc__deref_pbuz1 < vbuaa=_inc__deref_pbuz1 < vbuaa=_inc_vbuaa < vb sta {c1} CANNOT SYNTHESIZE _deref_pbuc1=_neg__deref_pbuz1 CANNOT SYNTHESIZE _deref_pbuc1=_pos__deref_pbuz1 -CANNOT SYNTHESIZE _deref_pbuc1=_bnot__deref_pbuc1 +_deref_pbuc1=_bnot__deref_pbuc1 < vbuaa=_bnot__deref_pbuc1 - clobber:A cycles:10.0 + lda {c1} + eor #$ff + sta {c1} *_deref_pbuc1=_dec__deref_pbuc1 - clobber: cycles:6.0 dec {c1} *_deref_pbuc1=_inc__deref_pbuc1 - clobber: cycles:6.0 inc {c1} CANNOT SYNTHESIZE _deref_pbuc1=_neg__deref_pbuc1 CANNOT SYNTHESIZE _deref_pbuc1=_pos__deref_pbuc1 -CANNOT SYNTHESIZE _deref_pbuc1=_bnot__deref_pbuc2 +_deref_pbuc1=_bnot__deref_pbuc2 < vbuaa=_bnot__deref_pbuc1 - clobber:A cycles:10.0 + lda {c2} + eor #$ff + sta {c1} _deref_pbuc1=_dec__deref_pbuc2 < vbuaa=_dec__deref_pbuc1 < vbuaa=_dec_vbuaa < vbuaa=vbuaa_minus_1 - clobber:A cycles:12.0 lda {c2} sec @@ -2205,7 +2226,11 @@ pbuz1_derefidx_vbuz2=_inc__deref_pbuz3 < vbuaa=_inc__deref_pbuz1 < vbuaa=_inc_vb sta ({z1}),y CANNOT SYNTHESIZE pbuz1_derefidx_vbuz2=_neg__deref_pbuz3 CANNOT SYNTHESIZE pbuz1_derefidx_vbuz2=_pos__deref_pbuz3 -CANNOT SYNTHESIZE pbuz1_derefidx_vbuz2=_bnot__deref_pbuc1 +pbuz1_derefidx_vbuz2=_bnot__deref_pbuc1 < vbuaa=_bnot__deref_pbuc1 - clobber:A Y cycles:15.0 + lda {c1} + eor #$ff + ldy {z2} + sta ({z1}),y pbuz1_derefidx_vbuz2=_dec__deref_pbuc1 < pbuz1_derefidx_vbuz2=_dec_vbuaa < vbuaa=_dec_vbuaa < vbuaa=vbuaa_minus_1 - clobber:A Y cycles:17.0 lda {c1} sec @@ -2786,7 +2811,16 @@ pbuc1_derefidx_vbuaa=_inc__deref_pbuc1 < pbuc1_derefidx_vbuyy=_inc__deref_pbuc1 sta {c1},y CANNOT SYNTHESIZE pbuc1_derefidx_vbuaa=_neg__deref_pbuc1 CANNOT SYNTHESIZE pbuc1_derefidx_vbuaa=_pos__deref_pbuc1 -CANNOT SYNTHESIZE pbuc1_derefidx_vbuaa=_bnot__deref_pbuc2 +pbuc1_derefidx_vbuaa=_bnot__deref_pbuc2 < pbuc1_derefidx_vbuxx=_bnot__deref_pbuc2 < vbuaa=_bnot__deref_pbuc1 - clobber:A X cycles:13.0 + tax + lda {c2} + eor #$ff + sta {c1},x +pbuc1_derefidx_vbuaa=_bnot__deref_pbuc2 < pbuc1_derefidx_vbuyy=_bnot__deref_pbuc2 < vbuaa=_bnot__deref_pbuc1 - clobber:A Y cycles:13.0 + tay + lda {c2} + eor #$ff + sta {c1},y pbuc1_derefidx_vbuaa=_dec__deref_pbuc2 < pbuc1_derefidx_vbuxx=_dec__deref_pbuc2 < vbuaa=_dec__deref_pbuc1 < vbuaa=_dec_vbuaa < vbuaa=vbuaa_minus_1 - clobber:A X cycles:15.0 tax lda {c2} @@ -3085,7 +3119,10 @@ pbuc1_derefidx_vbuxx=_inc__deref_pbuc1 < pbuc1_derefidx_vbuxx=_inc_vbuaa < vbuaa sta {c1},x CANNOT SYNTHESIZE pbuc1_derefidx_vbuxx=_neg__deref_pbuc1 CANNOT SYNTHESIZE pbuc1_derefidx_vbuxx=_pos__deref_pbuc1 -CANNOT SYNTHESIZE pbuc1_derefidx_vbuxx=_bnot__deref_pbuc2 +pbuc1_derefidx_vbuxx=_bnot__deref_pbuc2 < vbuaa=_bnot__deref_pbuc1 - clobber:A cycles:11.0 + lda {c2} + eor #$ff + sta {c1},x pbuc1_derefidx_vbuxx=_dec__deref_pbuc2 < vbuaa=_dec__deref_pbuc1 < vbuaa=_dec_vbuaa < vbuaa=vbuaa_minus_1 - clobber:A cycles:13.0 lda {c2} sec @@ -3335,7 +3372,10 @@ pbuc1_derefidx_vbuyy=_inc__deref_pbuc1 < pbuc1_derefidx_vbuyy=_inc_vbuaa < vbuaa sta {c1},y CANNOT SYNTHESIZE pbuc1_derefidx_vbuyy=_neg__deref_pbuc1 CANNOT SYNTHESIZE pbuc1_derefidx_vbuyy=_pos__deref_pbuc1 -CANNOT SYNTHESIZE pbuc1_derefidx_vbuyy=_bnot__deref_pbuc2 +pbuc1_derefidx_vbuyy=_bnot__deref_pbuc2 < vbuaa=_bnot__deref_pbuc1 - clobber:A cycles:11.0 + lda {c2} + eor #$ff + sta {c1},y pbuc1_derefidx_vbuyy=_dec__deref_pbuc2 < vbuaa=_dec__deref_pbuc1 < vbuaa=_dec_vbuaa < vbuaa=vbuaa_minus_1 - clobber:A cycles:13.0 lda {c2} sec @@ -3675,7 +3715,11 @@ pbuc1_derefidx_vbuz1=_inc__deref_pbuz2 < pbuc1_derefidx_vbuxx=_inc__deref_pbuz1 sta {c1},x CANNOT SYNTHESIZE pbuc1_derefidx_vbuz1=_neg__deref_pbuz2 CANNOT SYNTHESIZE pbuc1_derefidx_vbuz1=_pos__deref_pbuz2 -CANNOT SYNTHESIZE pbuc1_derefidx_vbuz1=_bnot__deref_pbuc1 +pbuc1_derefidx_vbuz1=_bnot__deref_pbuc1 < vbuaa=_bnot__deref_pbuc1 - clobber:A X cycles:14.0 + lda {c1} + eor #$ff + ldx {z1} + sta {c1},x pbuc1_derefidx_vbuz1=_dec__deref_pbuc1 < pbuc1_derefidx_vbuz1=_dec_vbuaa < pbuc1_derefidx_vbuxx=_dec_vbuaa < vbuaa=_dec_vbuaa < vbuaa=vbuaa_minus_1 - clobber:A X cycles:16.0 lda {c1} ldx {z1} @@ -3702,7 +3746,16 @@ pbuc1_derefidx_vbuz1=_inc__deref_pbuc1 < pbuc1_derefidx_vbuz1=_inc_vbuaa < pbuc1 sta {c1},y CANNOT SYNTHESIZE pbuc1_derefidx_vbuz1=_neg__deref_pbuc1 CANNOT SYNTHESIZE pbuc1_derefidx_vbuz1=_pos__deref_pbuc1 -CANNOT SYNTHESIZE pbuc1_derefidx_vbuz1=_bnot__deref_pbuc2 +pbuc1_derefidx_vbuz1=_bnot__deref_pbuc2 < vbuaa=_bnot__deref_pbuc1 - clobber:A X cycles:14.0 + lda {c2} + eor #$ff + ldx {z1} + sta {c1},x +pbuc1_derefidx_vbuz1=_bnot__deref_pbuc2 < pbuc1_derefidx_vbuyy=_bnot__deref_pbuc2 < vbuaa=_bnot__deref_pbuc1 - clobber:A Y cycles:14.0 + ldy {z1} + lda {c2} + eor #$ff + sta {c1},y pbuc1_derefidx_vbuz1=_dec__deref_pbuc2 < vbuaa=_dec__deref_pbuc1 < vbuaa=_dec_vbuaa < vbuaa=vbuaa_minus_1 - clobber:A X cycles:16.0 lda {c2} sec