Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
abc-interpreter
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
8
Issues
8
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
clean-and-itasks
abc-interpreter
Commits
a89d6024
Commit
a89d6024
authored
Jun 14, 2020
by
Camil Staps
🚀
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-replace_r-and-update_r' into 'master'
Fix replace_r and update_r See merge request
!127
parents
7e73d6d7
1797871e
Pipeline
#43612
passed with stages
in 12 minutes and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
tools/interpretergen.icl
tools/interpretergen.icl
+4
-7
No files found.
tools/interpretergen.icl
View file @
a89d6024
...
@@ -2743,7 +2743,7 @@ all_instructions opts t = bootstrap $ collect_instructions opts $ map (\i -> i t
...
@@ -2743,7 +2743,7 @@ all_instructions opts t = bootstrap $ collect_instructions opts $ map (\i -> i t
advance_ptr
b
n_a
:.
advance_ptr
b
n_a
:.
unrolled_loop
[
1
..
32
]
(\
i
->
n_a
<.
lit_hword
i
)
(\
i
->
unrolled_loop
[
1
..
32
]
(\
i
->
n_a
<.
lit_hword
i
)
(\
i
->
A
@
(
1
-
i
)
.=
a
@
(
i
-1
)
:.
A
@
(
1
-
i
)
.=
a
@
(
i
-1
)
:.
a
@
(
i
-1
)
.=
A
@
(
i
-2
))
:.
a
@
(
i
-1
)
.=
A
@
(
0
-
i
))
:.
new_local
TWord
(
lit_word
0
)
\
temp
->
new_local
TWord
(
lit_word
0
)
\
temp
->
unrolled_loop
[
0
..
31
]
(\
i
->
n_b
<.
lit_hword
(
i
+1
))
(\
i
->
unrolled_loop
[
0
..
31
]
(\
i
->
n_b
<.
lit_hword
(
i
+1
))
(\
i
->
temp
.=
b
@
i
:.
temp
.=
b
@
i
:.
...
@@ -3186,15 +3186,12 @@ all_instructions opts t = bootstrap $ collect_instructions opts $ map (\i -> i t
...
@@ -3186,15 +3186,12 @@ all_instructions opts t = bootstrap $ collect_instructions opts $ map (\i -> i t
advance_ptr
Pc
3
:.
advance_ptr
Pc
3
:.
new_local
(
TPtr
TWord
)
(
to_word_ptr
(
A
@
0
))
\
elems
->
new_local
(
TPtr
TWord
)
(
to_word_ptr
(
A
@
0
))
\
elems
->
advance_ptr
elems
((
n_a
+
n_b
)
*
to_ptr_offset
(
B
@
0
)
+
lit_hword
3
)
:.
advance_ptr
elems
((
n_a
+
n_b
)
*
to_ptr_offset
(
B
@
0
)
+
lit_hword
3
)
:.
elems
@
0
.=
A
@
-1
:.
for
[
0
..
4
]
(\
i
->
elems
@
i
.=
A
@
(
-1
-
i
))
:.
elems
@
1
.=
A
@
-2
:.
unrolled_loop
[
6
..
30
]
(\
i
->
n_a
<.
lit_hword
i
)
(\
i
->
elems
@
(
i
-1
)
.=
A
@
(
0
-
i
))
:.
unrolled_loop
[
3
..
30
]
(\
i
->
n_a
<.
lit_hword
i
)
(\
i
->
elems
@
(
i
-1
)
.=
A
@
(
0
-
i
))
:.
A
@
(
lit_hword
0
-
n_a
)
.=
A
@
0
:.
A
@
(
lit_hword
0
-
n_a
)
.=
A
@
0
:.
shrink_a
n_a
:.
shrink_a
n_a
:.
advance_ptr
elems
n_a
:.
advance_ptr
elems
n_a
:.
elems
@
0
.=
B
@
1
:.
unrolled_loop
[
1
..
30
]
(\
i
->
n_b
<.
lit_hword
i
)
(\
i
->
elems
@
(
i
-1
)
.=
B
@
i
)
:.
elems
@
1
.=
B
@
2
:.
unrolled_loop
[
3
..
30
]
(\
i
->
n_b
<.
lit_hword
i
)
(\
i
->
elems
@
(
i
-1
)
.=
B
@
i
)
:.
shrink_b
(
n_b
+
lit_hword
1
)
shrink_b
(
n_b
+
lit_hword
1
)
,
instr
"xorI"
(
Just
0
)
$
,
instr
"xorI"
(
Just
0
)
$
B
@
1
.=
xorI
(
B
@
0
)
(
B
@
1
)
:.
B
@
1
.=
xorI
(
B
@
0
)
(
B
@
1
)
:.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment