riscv-software-src / riscv-tests

Other
876 stars 451 forks source link

Add bitmanip test cases #539

Closed rogerchang23424 closed 7 months ago

rogerchang23424 commented 7 months ago

The test cases contains zba, zbb, zbc, zbs instructions

rogerchang23424 commented 7 months ago

Can you separate the tests into directories per extension, rather than lumping them together into "b"?

Done

Can you tell us how you tested these? Unfortunately, I have an older version of RISC-V binutils on this machine, so I can't compile and run the tests on Spike myself.

Please enter the isa directory and make run to test binaries in Spike. The test cases require RISC-V gcc 12+ and binutils 2.38.0+ to run them, and make sure the version of Spike is latest.

https://godbolt.org/z/ehaE8Whb4

Thanks

aswaterman commented 7 months ago

Thank you for this helpful contribution!