Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mu-impl-ref2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mu
mu-impl-ref2
Commits
9c937dd9
Commit
9c937dd9
authored
Oct 10, 2015
by
Kunshan Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Passes stack gc, big func and mem test.
parent
dbc7e2a4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
UvmInterpreterStackGCTests.scala
...t/scala/uvm/refimpl/itpr/UvmInterpreterStackGCTests.scala
+1
-1
UvmInterpreterTestBigFunc.scala
...st/scala/uvm/refimpl/itpr/UvmInterpreterTestBigFunc.scala
+4
-4
extra-big-func.uir
tests/uvm-refimpl-test/extra-big-func.uir
+2
-2
uvm-mem-test-bundle.uir
tests/uvm-refimpl-test/uvm-mem-test-bundle.uir
+5
-5
No files found.
src/test/scala/uvm/refimpl/itpr/UvmInterpreterStackGCTests.scala
View file @
9c937dd9
...
...
@@ -50,7 +50,7 @@ class UvmInterpreterStackGCTests extends UvmBundleTesterBase {
val
func
=
ca
.
putFunction
(
"@stackcollecttest"
)
testFunc
(
ca
,
func
,
Seq
(
nStacks
))
{
(
ca
,
th
,
st
,
wp
)
=>
nameOf
(
ca
.
currentInstruction
(
st
,
0
))
match
{
case
"@stackcollecttest_v1.trap"
=>
{
case
"@stackcollecttest_v1.
endloop.
trap"
=>
{
gc
()
TrapRebindPassVoid
(
st
)
}
...
...
src/test/scala/uvm/refimpl/itpr/UvmInterpreterTestBigFunc.scala
View file @
9c937dd9
...
...
@@ -41,15 +41,15 @@ class UvmInterpreterTestBigFunc extends UvmBundleTesterBase {
"The Micro VM"
should
"sustain frequent bundle loading"
in
{
val
ca
=
microVM
.
newClientAgent
()
for
(
i
<-
0
until
100
)
{
for
(
i
<-
0
until
100
0
)
{
val
miniBundle
=
s
".global @h${i} <@i64>"
ca
.
loadBundle
(
miniBundle
)
}
val
sb
=
new
StringBuilder
()
sb
++=
".funcdef @bigger VERSION @bigger.v1 <@big.sig>
(%p)
{\n"
sb
++=
" %entry:\n"
for
(
i
<-
0
until
100
)
{
sb
++=
".funcdef @bigger VERSION @bigger.v1 <@big.sig> {\n"
sb
++=
" %entry
(<@i64> %p)
:\n"
for
(
i
<-
0
until
100
0
)
{
sb
++=
s
" %r${i} = STORE <@i64> @h${i} %p\n"
}
sb
++=
" TRAP <@void>\n"
...
...
tests/uvm-refimpl-test/extra-big-func.uir
View file @
9c937dd9
...
...
@@ -106,8 +106,8 @@
.funcsig @big.sig = @void (@i64)
.funcdef @big VERSION @big_v1 <@big.sig>
(%p)
{
%entry:
.funcdef @big VERSION @big_v1 <@big.sig> {
%entry
(<@i64> %p)
:
%i0 = ADD <@i64> %p @I64_1
%i1 = ADD <@i64> %i0 @I64_1
%i2 = ADD <@i64> %i1 @I64_1
...
...
tests/uvm-refimpl-test/uvm-mem-test-bundle.uir
View file @
9c937dd9
...
...
@@ -38,11 +38,11 @@
.typedef @iii8 = iref<@ii8>
.funcsig @sig1 = @i32 (@i32 @iii8)
.typedef @f0 = func
<@sig0>
.typedef @f1 = func
<@sig1>
.typedef @f0 = func
ref
<@sig0>
.typedef @f1 = func
ref
<@sig1>
.typedef @th = thread
.typedef @st = stack
.typedef @th = thread
ref
.typedef @st = stack
ref
.typedef @tr64 = tagref64
.typedef @i6 = int<6>
...
...
@@ -56,4 +56,4 @@
.funcdecl @fun <@sig0>
.funcdecl @fun2 <@sig0>
.const @NULLF0 <@f0> = NULL
\ No newline at end of file
.const @NULLF0 <@f0> = NULL
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