Bug 629 - TRAP pipeline unit test failures
Summary: TRAP pipeline unit test failures
Status: CONFIRMED
Alias: None
Product: Libre-SOC's first SoC
Classification: Unclassified
Component: Source Code (show other bugs)
Version: unspecified
Hardware: PC Linux
: --- enhancement
Assignee: Luke Kenneth Casson Leighton
URL:
Depends on:
Blocks: 383
  Show dependency treegraph
 
Reported: 2021-04-23 20:22 BST by Luke Kenneth Casson Leighton
Modified: 2021-05-04 18:07 BST (History)
1 user (show)

See Also:
NLnet milestone: ---
total budget (EUR) for completion of task and all subtasks: 0
budget (EUR) for this task, excluding subtasks' budget: 0
parent task for budget allocation:
child tasks for budget allocation:
The table of payments (in EUR) for this task; TOML format:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luke Kenneth Casson Leighton 2021-04-23 20:22:21 BST
======================================================================
ERROR: run_all (__main__.TestRunner) [case_3_mtmsr_0]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "fu/trap/test/test_pipe_caller.py", line 144, in process
    sim, code)
  File "fu/trap/test/test_pipe_caller.py", line 181, in check_alu_outputs
    ALUHelpers.check_fast_spr1(self, res, sim_o, code)
  File "/home/lkcl/src/libresoc/openpower-isa/src/openpower/test/common.py", line 493, in check_fast_spr1
    expected = sim_o['fast1']
KeyError: 'fast1'

======================================================================
FAIL: run_all (__main__.TestRunner) [case_1_rfid]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "fu/trap/test/test_pipe_caller.py", line 144, in process
    sim, code)
  File "fu/trap/test/test_pipe_caller.py", line 184, in check_alu_outputs
    ALUHelpers.check_msr(self, res, sim_o, code)
  File "/home/lkcl/src/libresoc/openpower-isa/src/openpower/test/common.py", line 524, in check_msr
    dut.assertEqual(expected, alu_out, msg)
AssertionError: 50808 != 54904 : rfid

======================================================================
FAIL: run_all (__main__.TestRunner) [case_0_trap_eq_imm]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "fu/trap/test/test_pipe_caller.py", line 144, in process
    sim, code)
  File "fu/trap/test/test_pipe_caller.py", line 183, in check_alu_outputs
    ALUHelpers.check_nia(self, res, sim_o, code)
  File "/home/lkcl/src/libresoc/openpower-isa/src/openpower/test/common.py", line 531, in check_nia
    dut.assertEqual(expected, alu_out, msg)
AssertionError: 4 != 305419896 : twi 4, 1, 0

======================================================================
FAIL: run_all (__main__.TestRunner) [case_4_mtmsrd_0]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "fu/trap/test/test_pipe_caller.py", line 144, in process
    sim, code)
  File "fu/trap/test/test_pipe_caller.py", line 184, in check_alu_outputs
    ALUHelpers.check_msr(self, res, sim_o, code)
  File "/home/lkcl/src/libresoc/openpower-isa/src/openpower/test/common.py", line 524, in check_msr
    dut.assertEqual(expected, alu_out, msg)
AssertionError: 17293822569098506238 != 32770 : mtmsrd 1,0


======================================================================
FAIL: run_all (__main__.TestRunner) [case_6_mtmsr_priv_0]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "fu/trap/test/test_pipe_caller.py", line 144, in process
    sim, code)
  File "fu/trap/test/test_pipe_caller.py", line 184, in check_alu_outputs
    ALUHelpers.check_msr(self, res, sim_o, code)
  File "/home/lkcl/src/libresoc/openpower-isa/src/openpower/test/common.py", line 524, in check_msr
    dut.assertEqual(expected, alu_out, msg)
AssertionError: 9223372036854775809 != 32770 : mtmsr 1,0

======================================================================
FAIL: run_all (__main__.TestRunner) [case_8_mfmsr]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "fu/trap/test/test_pipe_caller.py", line 144, in process
    sim, code)
  File "fu/trap/test/test_pipe_caller.py", line 180, in check_alu_outputs
    ALUHelpers.check_int_o(self, res, sim_o, code)
  File "/home/lkcl/src/libresoc/openpower-isa/src/openpower/test/common.py", line 517, in check_int_o
    dut.assertEqual(expected, alu_out, msg)
AssertionError: 18446744073709535231 != 0 : mfmsr 1

======================================================================
FAIL: run_all (__main__.TestRunner) [case_999_illegal]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "fu/trap/test/test_pipe_caller.py", line 144, in process
    sim, code)
  File "fu/trap/test/test_pipe_caller.py", line 182, in check_alu_outputs
    ALUHelpers.check_fast_spr2(self, res, sim_o, code)
  File "/home/lkcl/src/libresoc/openpower-isa/src/openpower/test/common.py", line 503, in check_fast_spr2
    dut.assertEqual(expected, alu_out, msg)
AssertionError: 524288 != 278528 : tbegin.
Comment 1 Luke Kenneth Casson Leighton 2021-04-23 20:22:54 BST
quite a lot of failures, including tdi - this one especially
needs investigation