diff --git a/src/test/ref/declared-memory-var-0.log b/src/test/ref/declared-memory-var-0.log index def3b2ee8..4e13f9718 100644 --- a/src/test/ref/declared-memory-var-0.log +++ b/src/test/ref/declared-memory-var-0.log @@ -11,7 +11,7 @@ Updating memory variable reference *((const byte*) idx_ptr) CONTROL FLOW GRAPH SSA @begin: scope:[] from - *((const byte*) idx_ptr) ← (number) 0 + *((const byte*) idx_ptr) ← (byte) 0 (byte*) SCREEN#0 ← ((byte*)) (number) $400 to:@1 @@ -57,16 +57,10 @@ SYMBOL TABLE SSA (byte) main::i#1 (byte) main::i#2 -Adding number conversion cast (unumber) 0 in *((const byte*) idx_ptr) ← (number) 0 -Successful SSA optimization PassNAddNumberTypeConversions -Inlining cast *((const byte*) idx_ptr) ← (unumber)(number) 0 Inlining cast (byte*) SCREEN#0 ← (byte*)(number) $400 Successful SSA optimization Pass2InlineCast -Simplifying constant integer cast 0 Simplifying constant pointer cast (byte*) 1024 Successful SSA optimization PassNCastSimplification -Finalized unsigned number type (byte) 0 -Successful SSA optimization PassNFinalizeNumberTypeConversions Simple Condition (bool~) main::$0 [8] if((byte) main::i#1!=rangelast(0,5)) goto main::@1 Successful SSA optimization Pass2ConditionalJumpSimplification Constant (const byte*) SCREEN#0 = (byte*) 1024 @@ -377,7 +371,7 @@ Score: 323 .label SCREEN = $400 // @begin bbegin: - // idx=0 + // idx // [0] *((const byte*) idx_ptr) ← (byte) 0 -- _deref_pbuc1=vbuc2 lda #0 sta idx_ptr diff --git a/src/test/ref/declared-memory-var-1.asm b/src/test/ref/declared-memory-var-1.asm index a93a89ee2..e0b97105e 100644 --- a/src/test/ref/declared-memory-var-1.asm +++ b/src/test/ref/declared-memory-var-1.asm @@ -1,5 +1,5 @@ // Test declaring a variable as "memory", meaning it will be stored in memory and accessed through an implicit pointer (using load/store) -// Test a pointer +// Test a pointer to a memory variable .pc = $801 "Basic" :BasicUpstart(bbegin) .pc = $80d "Program" diff --git a/src/test/ref/declared-memory-var-1.log b/src/test/ref/declared-memory-var-1.log index 583b990ae..adb48d6bf 100644 --- a/src/test/ref/declared-memory-var-1.log +++ b/src/test/ref/declared-memory-var-1.log @@ -154,7 +154,7 @@ INITIAL ASM Target platform is c64basic / MOS6502X // File Comments // Test declaring a variable as "memory", meaning it will be stored in memory and accessed through an implicit pointer (using load/store) -// Test a pointer +// Test a pointer to a memory variable // Upstart .pc = $801 "Basic" :BasicUpstart(bbegin) @@ -254,7 +254,7 @@ Allocated (was zp ZP_WORD:3) zp ZP_WORD:2 [ idx_p#0 ] ASSEMBLER BEFORE OPTIMIZATION // File Comments // Test declaring a variable as "memory", meaning it will be stored in memory and accessed through an implicit pointer (using load/store) -// Test a pointer +// Test a pointer to a memory variable // Upstart .pc = $801 "Basic" :BasicUpstart(bbegin) @@ -376,7 +376,7 @@ Score: 399 // File Comments // Test declaring a variable as "memory", meaning it will be stored in memory and accessed through an implicit pointer (using load/store) -// Test a pointer +// Test a pointer to a memory variable // Upstart .pc = $801 "Basic" :BasicUpstart(bbegin)