Skip to content

Commit 09d23cc

Browse files
committed
Updated Changelog and tests
1 parent e976bc4 commit 09d23cc

File tree

3 files changed

+73
-0
lines changed

3 files changed

+73
-0
lines changed

Changelog.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
Version 7.1.1
2+
- Fixed using struct names for return values and parameters in Spin2
3+
- Improved code generation for small structs containing arrays
24
- Improved some forward branches in P1 LMM mode
35

46
Version 7.1.0

Test/Expect/stest318.p2asm

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
con
2+
_clkfreq = 20000000
3+
_clkmode = 16779595
4+
dat
5+
nop
6+
cogid pa
7+
coginit pa,##$404
8+
orgh $10
9+
long 0 'reserved
10+
long 0 ' clock frequency: will default to 20000000
11+
long 0 ' clock mode: will default to $100094b
12+
orgh $400
13+
_ret_ mov result1, #0
14+
org 0
15+
entry
16+
17+
_foo2
18+
mov result1, arg02
19+
mov result2, #255
20+
_foo2_ret
21+
ret
22+
builtin_bytefill_
23+
shr arg03, #1 wc
24+
if_c wrbyte arg02, arg01
25+
if_c add arg01, #1
26+
movbyts arg02, #0
27+
builtin_wordfill_
28+
shr arg03, #1 wc
29+
if_c wrword arg02, arg01
30+
if_c add arg01, #2
31+
setword arg02, arg02, #1
32+
builtin_longfill_
33+
wrfast #0,arg01
34+
cmp arg03, #0 wz
35+
if_nz rep #1, arg03
36+
if_nz wflong arg02
37+
ret
38+
39+
result1
40+
long 0
41+
result2
42+
long 1
43+
COG_BSS_START
44+
fit 480
45+
orgh
46+
org COG_BSS_START
47+
_var01
48+
res 1
49+
_var02
50+
res 1
51+
_var03
52+
res 1
53+
_var04
54+
res 1
55+
arg01
56+
res 1
57+
arg02
58+
res 1
59+
fit 480

Test/stest318.spin2

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{Spin2_v50}
2+
3+
'*************************
4+
'* 64-bit Integer Math *
5+
'*************************
6+
7+
CON
8+
struct qint64(n[2])
9+
10+
PUB foo2(qint64 a) : qint64 r
11+
r.n[0] := a.n[1]
12+
r.n[1] := $FF

0 commit comments

Comments
 (0)