riscv-collab / v8

Port of Google v8 engine to RISC-V.
https://github.com/v8-riscv/v8/wiki
Other
237 stars 31 forks source link

cctest test-macro-assembler-riscv32/CalcScaledAddress fails #629

Closed qjivy closed 2 years ago

qjivy commented 2 years ago

cmd line:

out/riscv32.debug$ ./cctest test-macro-assembler-riscv32/CalcScaledAddress

Error log:

#
# Fatal error in ../../test/cctest/test-macro-assembler-riscv32.cc, line 381
# Check failed: tc[i].expected_res == res (268435452 vs. 4294967292).
#
#
#
#FailureMessage Object: 0xff94a618
==== C stack trace ===============================

    /work/qjivy/rv32v8/another/v8/out/riscv32.debug/libv8_libbase.so(v8::base::debug::StackTrace::StackTrace()+0x2c) [0xf7f6d92c]
    /work/qjivy/rv32v8/another/v8/out/riscv32.debug/libv8_libplatform.so(+0x515fe) [0xf7eba5fe]
    /work/qjivy/rv32v8/another/v8/out/riscv32.debug/libv8_libbase.so(V8_Fatal(char const*, int, char const*, ...)+0x134) [0xf7f33294]
    ./cctest(+0x1a7a326) [0x580a3326]
    ./cctest(CcTest::Run(char const*)+0x577) [0x5744d2d7]
    ./cctest(main+0x501) [0x5744efd1]
    /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf1) [0xf110efa1]
    ./cctest(_start+0x31) [0x5744ca11]
Trace/breakpoint trap
qjivy commented 2 years ago

fix by #628