SB test error

51 views
Skip to first unread message

Myron yung

unread,
Oct 9, 2020, 2:30:08 PM10/9/20
to cmpt-295-sfu
SFU ID: myrony
Github username: myronyung
Line and file: last line of SB
Expected behavior: loop infinitely 
Observed behavior: doesnt loop infinitely 
Question: Doesn't SB test loop infinitely since last instruction in SB test sends you back 8 instructions back to the first instruction, creating a infinite loop?  In the ref out code it doesn't appear to do this, but when I run mine I get a never ending output.

Myron yung

unread,
Oct 9, 2020, 2:33:18 PM10/9/20
to cmpt-295-sfu
correction: I mean UJ test not SB

Arrvindh Shriraman

unread,
Oct 9, 2020, 2:36:54 PM10/9/20
to cmpt-295-sfu
Dont pass -e; we don't while testing

Myron yung

unread,
Oct 9, 2020, 2:46:17 PM10/9/20
to cmpt-295-sfu
it stopped looping, thanks

stuntm...@gmail.com

unread,
Oct 9, 2020, 5:54:07 PM10/9/20
to cmpt-295-sfu
What about following testing lines?
./riscv -r -e ./code/input/random.input > ./code/out/random.trace 
random/simple/multiply

In my code, every test is passing with -r for both parts, but with -r -e only my UJ is not working
I think due to this the following tests are also not working- 
./riscv -r -e ./code/input/random.input > ./code/out/random.trace  
./riscv -r -e ./code/input/simple.input > ./code/out/simple.trace 
./riscv -r -e ./code/input/multiply.input > ./code/out/multiple.trace  
On Friday, October 9, 2020 at 11:36:54 AM UTC-7 ashrir...@gmail.com wrote:

Arrvindh Shriraman

unread,
Oct 9, 2020, 6:58:01 PM10/9/20
to cmpt-295-sfu
-e is only for simple,ranom,multiple. Those require -e.

All other tests do not.
Reply all
Reply to author
Forward
0 new messages