mirror of
https://gitlab.com/camelot/kickc.git
synced 2025-02-07 05:30:43 +00:00
Fixed test!
This commit is contained in:
parent
3b68c1b33e
commit
d51bfe5c66
13
src/main/fragment/mos6502-common/vdum1=_dec_vdum2.asm
Normal file
13
src/main/fragment/mos6502-common/vdum1=_dec_vdum2.asm
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
lda {m2}
|
||||||
|
sec
|
||||||
|
sbc #1
|
||||||
|
sta {m1}
|
||||||
|
lda {m2}+1
|
||||||
|
sbc #0
|
||||||
|
sta {m1}+1
|
||||||
|
lda {m2}+2
|
||||||
|
sbc #0
|
||||||
|
sta {m1}+2
|
||||||
|
lda {m2}+3
|
||||||
|
sbc #0
|
||||||
|
sta {m1}+3
|
@ -283,11 +283,6 @@ Allocated zp[4]:10 [ ifunc::delta#2 ifunc::delta#1 ]
|
|||||||
Allocated zp[4]:14 [ ifunc::return#2 ]
|
Allocated zp[4]:14 [ ifunc::return#2 ]
|
||||||
Allocated zp[4]:18 [ main::$0 ]
|
Allocated zp[4]:18 [ main::$0 ]
|
||||||
Allocated zp[4]:22 [ ifunc::return#0 ]
|
Allocated zp[4]:22 [ ifunc::return#0 ]
|
||||||
Warning! Unknown fragment for statement [13] (dword) ifunc::return#0 ← -- (dword) ifunc::x#3
|
|
||||||
Missing ASM fragment Fragment not found vduz1=_dec_vduz2. Attempted variations vduz1=_dec_vduz2
|
|
||||||
File /Users/jespergravgaard/c64/kickc/src/test/kc/sqr-delta.kc
|
|
||||||
Line 10
|
|
||||||
return --x;
|
|
||||||
|
|
||||||
INITIAL ASM
|
INITIAL ASM
|
||||||
Target platform is c64basic / MOS6502X
|
Target platform is c64basic / MOS6502X
|
||||||
@ -417,8 +412,20 @@ ifunc: {
|
|||||||
jmp __b3
|
jmp __b3
|
||||||
// ifunc::@3
|
// ifunc::@3
|
||||||
__b3:
|
__b3:
|
||||||
// [13] (dword) ifunc::return#0 ← -- (dword) ifunc::x#3
|
// [13] (dword) ifunc::return#0 ← -- (dword) ifunc::x#3 -- vduz1=_dec_vduz2
|
||||||
.assert "Missing ASM fragment Fragment not found vduz1=_dec_vduz2. Attempted variations vduz1=_dec_vduz2 ", 0, 1
|
lda.z x
|
||||||
|
sec
|
||||||
|
sbc #1
|
||||||
|
sta.z return
|
||||||
|
lda.z x+1
|
||||||
|
sbc #0
|
||||||
|
sta.z return+1
|
||||||
|
lda.z x+2
|
||||||
|
sbc #0
|
||||||
|
sta.z return+2
|
||||||
|
lda.z x+3
|
||||||
|
sbc #0
|
||||||
|
sta.z return+3
|
||||||
jmp __breturn
|
jmp __breturn
|
||||||
// ifunc::@return
|
// ifunc::@return
|
||||||
__breturn:
|
__breturn:
|
||||||
@ -475,10 +482,7 @@ Statement [6] (dword) ifunc::return#2 ← (dword) ifunc::return#0 [ ifunc::retur
|
|||||||
Statement [7] (dword~) main::$0 ← (dword) ifunc::return#2 [ main::$0 ] ( main:2 [ main::$0 ] ) always clobbers reg byte a
|
Statement [7] (dword~) main::$0 ← (dword) ifunc::return#2 [ main::$0 ] ( main:2 [ main::$0 ] ) always clobbers reg byte a
|
||||||
Statement [8] *((const dword*) SCREEN) ← (dword~) main::$0 [ ] ( main:2 [ ] ) always clobbers reg byte a
|
Statement [8] *((const dword*) SCREEN) ← (dword~) main::$0 [ ] ( main:2 [ ] ) always clobbers reg byte a
|
||||||
Statement [12] if((dword) ifunc::xsqr#2<(const dword) ifunc::a#0+(byte) 1) goto ifunc::@2 [ ifunc::xsqr#2 ifunc::x#3 ifunc::delta#2 ] ( main:2::ifunc:5 [ ifunc::xsqr#2 ifunc::x#3 ifunc::delta#2 ] ) always clobbers reg byte a
|
Statement [12] if((dword) ifunc::xsqr#2<(const dword) ifunc::a#0+(byte) 1) goto ifunc::@2 [ ifunc::xsqr#2 ifunc::x#3 ifunc::delta#2 ] ( main:2::ifunc:5 [ ifunc::xsqr#2 ifunc::x#3 ifunc::delta#2 ] ) always clobbers reg byte a
|
||||||
Potential register analysis [13] ifunc::return#0 ← -- ifunc::x#3 missing fragment Fragment not found vduz1=_dec_vduz2. Attempted variations vduz1=_dec_vduz2 allocation: zp[4]:22 [ ifunc::return#0 ] zp[4]:6 [ ifunc::x#3 ifunc::x#1 ]
|
Statement [13] (dword) ifunc::return#0 ← -- (dword) ifunc::x#3 [ ifunc::return#0 ] ( main:2::ifunc:5 [ ifunc::return#0 ] ) always clobbers reg byte a
|
||||||
MISSING FRAGMENTS
|
|
||||||
Fragment not found vduz1=_dec_vduz2. Attempted variations vduz1=_dec_vduz2
|
|
||||||
Statement [13] (dword) ifunc::return#0 ← -- (dword) ifunc::x#3 [ ifunc::return#0 ] ( main:2::ifunc:5 [ ifunc::return#0 ] ) always clobbers reg byte a reg byte x reg byte y
|
|
||||||
Statement [16] (dword) ifunc::xsqr#1 ← (dword) ifunc::xsqr#2 + (dword) ifunc::delta#2 [ ifunc::delta#2 ifunc::xsqr#1 ifunc::x#1 ] ( main:2::ifunc:5 [ ifunc::delta#2 ifunc::xsqr#1 ifunc::x#1 ] ) always clobbers reg byte a
|
Statement [16] (dword) ifunc::xsqr#1 ← (dword) ifunc::xsqr#2 + (dword) ifunc::delta#2 [ ifunc::delta#2 ifunc::xsqr#1 ifunc::x#1 ] ( main:2::ifunc:5 [ ifunc::delta#2 ifunc::xsqr#1 ifunc::x#1 ] ) always clobbers reg byte a
|
||||||
Statement [17] (dword) ifunc::delta#1 ← (dword) ifunc::delta#2 + (byte) 2 [ ifunc::xsqr#1 ifunc::x#1 ifunc::delta#1 ] ( main:2::ifunc:5 [ ifunc::xsqr#1 ifunc::x#1 ifunc::delta#1 ] ) always clobbers reg byte a
|
Statement [17] (dword) ifunc::delta#1 ← (dword) ifunc::delta#2 + (byte) 2 [ ifunc::xsqr#1 ifunc::x#1 ifunc::delta#1 ] ( main:2::ifunc:5 [ ifunc::xsqr#1 ifunc::x#1 ifunc::delta#1 ] ) always clobbers reg byte a
|
||||||
Potential registers zp[4]:2 [ ifunc::xsqr#2 ifunc::xsqr#1 ] : zp[4]:2 ,
|
Potential registers zp[4]:2 [ ifunc::xsqr#2 ifunc::xsqr#1 ] : zp[4]:2 ,
|
||||||
@ -493,24 +497,9 @@ Uplift Scope [ifunc] 30.25: zp[4]:10 [ ifunc::delta#2 ifunc::delta#1 ] 22: zp[4]
|
|||||||
Uplift Scope [main] 4: zp[4]:18 [ main::$0 ]
|
Uplift Scope [main] 4: zp[4]:18 [ main::$0 ]
|
||||||
Uplift Scope []
|
Uplift Scope []
|
||||||
|
|
||||||
Warning! Unknown fragment for statement [13] (dword) ifunc::return#0 ← -- (dword) ifunc::x#3
|
Uplifting [ifunc] best 2194 combination zp[4]:10 [ ifunc::delta#2 ifunc::delta#1 ] zp[4]:2 [ ifunc::xsqr#2 ifunc::xsqr#1 ] zp[4]:6 [ ifunc::x#3 ifunc::x#1 ] zp[4]:14 [ ifunc::return#2 ] zp[4]:22 [ ifunc::return#0 ]
|
||||||
Missing ASM fragment Fragment not found vduz1=_dec_vduz2. Attempted variations vduz1=_dec_vduz2
|
Uplifting [main] best 2194 combination zp[4]:18 [ main::$0 ]
|
||||||
File /Users/jespergravgaard/c64/kickc/src/test/kc/sqr-delta.kc
|
Uplifting [] best 2194 combination
|
||||||
Line 10
|
|
||||||
return --x;
|
|
||||||
Uplifting [ifunc] best 2160 combination zp[4]:10 [ ifunc::delta#2 ifunc::delta#1 ] zp[4]:2 [ ifunc::xsqr#2 ifunc::xsqr#1 ] zp[4]:6 [ ifunc::x#3 ifunc::x#1 ] zp[4]:14 [ ifunc::return#2 ] zp[4]:22 [ ifunc::return#0 ]
|
|
||||||
Warning! Unknown fragment for statement [13] (dword) ifunc::return#0 ← -- (dword) ifunc::x#3
|
|
||||||
Missing ASM fragment Fragment not found vduz1=_dec_vduz2. Attempted variations vduz1=_dec_vduz2
|
|
||||||
File /Users/jespergravgaard/c64/kickc/src/test/kc/sqr-delta.kc
|
|
||||||
Line 10
|
|
||||||
return --x;
|
|
||||||
Uplifting [main] best 2160 combination zp[4]:18 [ main::$0 ]
|
|
||||||
Warning! Unknown fragment for statement [13] (dword) ifunc::return#0 ← -- (dword) ifunc::x#3
|
|
||||||
Missing ASM fragment Fragment not found vduz1=_dec_vduz2. Attempted variations vduz1=_dec_vduz2
|
|
||||||
File /Users/jespergravgaard/c64/kickc/src/test/kc/sqr-delta.kc
|
|
||||||
Line 10
|
|
||||||
return --x;
|
|
||||||
Uplifting [] best 2160 combination
|
|
||||||
Coalescing zero page register [ zp[4]:6 [ ifunc::x#3 ifunc::x#1 ] ] with [ zp[4]:22 [ ifunc::return#0 ] ] - score: 1
|
Coalescing zero page register [ zp[4]:6 [ ifunc::x#3 ifunc::x#1 ] ] with [ zp[4]:22 [ ifunc::return#0 ] ] - score: 1
|
||||||
Coalescing zero page register [ zp[4]:14 [ ifunc::return#2 ] ] with [ zp[4]:18 [ main::$0 ] ] - score: 1
|
Coalescing zero page register [ zp[4]:14 [ ifunc::return#2 ] ] with [ zp[4]:18 [ main::$0 ] ] - score: 1
|
||||||
Coalescing zero page register [ zp[4]:6 [ ifunc::x#3 ifunc::x#1 ifunc::return#0 ] ] with [ zp[4]:14 [ ifunc::return#2 main::$0 ] ] - score: 1
|
Coalescing zero page register [ zp[4]:6 [ ifunc::x#3 ifunc::x#1 ifunc::return#0 ] ] with [ zp[4]:14 [ ifunc::return#2 main::$0 ] ] - score: 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user