riscv-software-src / riscv-tests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

strange behaviors in div.S

qian160 opened this issue · comments

I don't know if I've found some bugs, but in isa/rv64um/div.S:

  TEST_RR_OP( 7, div, -1<<63, -1<<63, -1 );
  TEST_RR_OP( 8, div, -1, -1<<63, 0 );
  TEST_RR_OP( 9, div, -1,      1, 0 );

These codes below don't seem to work correctly. For example, TEST_9 is trying to assert 1 / -1 == 0, which makes me confused. Or maybe I've got things wrong.