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

Fix test-assembler-riscv32/RISCV_UTEST_sll and test-assembler-riscv32/RISCV_UTEST_slli #597

Closed qjivy closed 2 years ago

qjivy commented 2 years ago
 out/riscv32.debug/cctest test-assembler-riscv32/RISCV_UTEST_sll --random-seed=-75565327 --nohard-abort --enable-slow-asserts --verify-heap --testing-d8-test-runner

#
# Fatal error in ../../test/cctest/test-assembler-riscv32.cc, line 362
# Check failed: ((0x12345678UL)<<(17)) == res (2901409792 vs. -1393557504).
#
#
#
#FailureMessage Object: 0xfff98d28
==== C stack trace ===============================

    /home/qjivy/work/v8/out/riscv32.debug/libv8_libbase.so(v8::base::debug::StackTrace::StackTrace()+0x2c) [0xf7f0792c]
    /home/qjivy/work/v8/out/riscv32.debug/libv8_libplatform.so(+0x515fe) [0xf7e545fe]
    /home/qjivy/work/v8/out/riscv32.debug/libv8_libbase.so(V8_Fatal(char const*, int, char const*, ...)+0x134) [0xf7ecd294]
    out/riscv32.debug/cctest(+0x1a1d831) [0x5802e831]
    out/riscv32.debug/cctest(CcTest::Run(char const*)+0x577) [0x5742a457]
    out/riscv32.debug/cctest(main+0x501) [0x5742c151]
    /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0xf109aee5]
    out/riscv32.debug/cctest(_start+0x31) [0x57429b91]
Aborted
./out/riscv32.debug/cctest test-assembler-riscv32/RISCV_UTEST_slli --random-seed=-75565327 --nohard-abort --enable-slow-asserts --verify-heap --testing-d8-test-runner

#
# Fatal error in ../../test/cctest/test-assembler-riscv32.cc, line 350
# Check failed: ((0x1234'5678ULL)<<(17)) == res (40031996608512 vs. -1393557504).
#
#
#
#FailureMessage Object: 0xffce9dd8
==== C stack trace ===============================

    /work/qjivy/rv32v8/another/v8/out/riscv32.debug/libv8_libbase.so(v8::base::debug::StackTrace::StackTrace()+0x2c) [0xf7f9692c]
    /work/qjivy/rv32v8/another/v8/out/riscv32.debug/libv8_libplatform.so(+0x515fe) [0xf7ee35fe]
    /work/qjivy/rv32v8/another/v8/out/riscv32.debug/libv8_libbase.so(V8_Fatal(char const*, int, char const*, ...)+0x134) [0xf7f5c294]
    out/riscv32.debug/cctest(+0x1a1cc60) [0x57fa3c60]
    out/riscv32.debug/cctest(CcTest::Run(char const*)+0x577) [0x573a0447]
    out/riscv32.debug/cctest(main+0x501) [0x573a2141]
    /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf1) [0xf1138fa1]
    out/riscv32.debug/cctest(_start+0x31) [0x5739fb81]
Aborted
qjivy commented 2 years ago

The RISCV_UTEST_slli still error with commit id: 1d8393aa1a161e3bdf2962b41bedfade46c16f3a

Command: out/riscv32.debug/cctest test-assembler-riscv32/RISCV_UTEST_slli --random-seed=982376661 --nohard-abort --enable-slow-asserts --verify-heap --testing-d8-test-runner