#4295 Rabbit regression failures on big-endian host
Currently, some regression tests fail for Rabbit ports on big-endian ppc64; I do not see them fail on little-endian amd64 and aarch64.
Summary for 'ucr2k' : 5 failures, 37229 tests, 6542 test cases, 7016589 bytes, 315951570 ticks
Failure: cases/tst_bug-3129
Failure: cases/tst_dilithium-ntt
Failure: cases/tst_gcc-torture-execute-pr91137
Failure: cases/coremark/coremark_mem_method_MEM_STACK
Failure: cases/coremark/coremark_mem_method_MEM_STATIC
For dilithium-ntt, the .ihx is identical on ppc64 to amd64. I also tried running the ihx from bug-3129 and gcc-torture-execute-pr91137 on amd64, and it passes there.
So we can assume that SDCC generates correct code. The ppc64 machine in the farm (nemesis, Power 9) has somewhat weak single-thread performance, comparable to a Raspi 4 or so. The test times out there. Regression test timeout is 180s. So why does it time out?
The tests take quite some time, even on Strix Halo (42s for dilithium-ntt, 22s for bug-3129, 17s for gcc-torture-execute-pr91137.
Last edit: Philipp Klaus Krause 11 hours ago
Looks like I just crashed nemesis (probably used too much RAM). Findings from before the crash:
P.S.: Guess it wasn't a real crash, just he machine becoming very slow due to swapping. Anway, here are results of the uCsim invokation on nemesis (in [r17133], uCsim takes 13s for this .ihx, for [r17135] and current trunk I did cancel it after waiting a few min):
[r17133]:
[r17135]:
[r17327]:
Related
Commit: [r17133]
Commit: [r17135]
Last edit: Philipp Klaus Krause 9 hours ago
It is uCsim regression. Introducing timer periferals in rabbit simulator made it slower. The more peripherals being implemented the slower simulation speed can be achived.
It being a bit slower is what I would have expected. But what I see looks more extreme. In a very quick test I just did, 1000000 r3ka simulation steps on nemesis take:
I didn't expect a relatively simple peripheral to take so much more simulation time than the CPU core.
Philipp
Related
Commit: [r17133]
Commit: [r17135]
Commit: [r17321]
[r17334] turns off simulation of rabbit timers.
Related
Commit: [r17334]