BESM-Consortium / BESM-666

Study project implementing RISCV functional simulator
6 stars 1 forks source link

Decoder_J.JAL1 fails #57

Closed levBagryansky closed 1 year ago

levBagryansky commented 1 year ago

Do rm -r build && make The error :

[ RUN      ] Decoder_U.LUI1
[       OK ] Decoder_U.LUI1 (0 ms)
[ RUN      ] Decoder_U.LUI2
[       OK ] Decoder_U.LUI2 (0 ms)
[ RUN      ] Decoder_U.AUIPC1
[       OK ] Decoder_U.AUIPC1 (0 ms)
[ RUN      ] Decoder_U.AUIPC2
[       OK ] Decoder_U.AUIPC2 (0 ms)
[ RUN      ] Decoder_U.NOT_AUIPC
[       OK ] Decoder_U.NOT_AUIPC (0 ms)
[----------] 5 tests from Decoder_U (0 ms total)

[----------] 8 tests from Decoder_J
[ RUN      ] Decoder_J.JAL1
decoder_test: /home/tardis3/BESM-666/src/decoder/decoder.cpp:215: static besm::Instruction besm::dec::Decoder::parse_J(besm::RV64UWord, besm::InstructionOp): Assertion `bit20 & bit1_10 & bit11 & bit12_19 == (RV64UWord)0b0' failed.

      Start  6: RV64I-executor-tests
 6/10 Test  #6: RV64I-executor-tests .............   Passed    0.00 sec
      Start  7: simple-programs
 7/10 Test  #7: simple-programs ..................   Passed    0.00 sec