X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=isa%2Frv32ui%2Fmulh.S;h=e583f5f699205240ebd25bfbb423dc4749c13044;hb=e2f81e97281915d15fdec0713de1003095d2ae17;hp=ef695c0b5c9f346a6c47b2a278bff244b4e386b9;hpb=0c98ef833db1f6eead3bd9ad083d9408d2d8decb;p=riscv-tests.git diff --git a/isa/rv32ui/mulh.S b/isa/rv32ui/mulh.S index ef695c0..e583f5f 100644 --- a/isa/rv32ui/mulh.S +++ b/isa/rv32ui/mulh.S @@ -1,3 +1,5 @@ +# See LICENSE for license details. + #***************************************************************************** # mulh.S #----------------------------------------------------------------------------- @@ -23,6 +25,15 @@ RVTEST_CODE_BEGIN TEST_RR_OP( 6, mulh, 0x00000000, 0x80000000, 0x00000000 ); TEST_RR_OP( 7, mulh, 0x00000000, 0x80000000, 0x00000000 ); + TEST_RR_OP(30, mulh, 0xffff0081, 0xaaaaaaab, 0x0002fe7d ); + TEST_RR_OP(31, mulh, 0xffff0081, 0x0002fe7d, 0xaaaaaaab ); + + TEST_RR_OP(32, mulh, 0x00010000, 0xff000000, 0xff000000 ); + + TEST_RR_OP(33, mulh, 0x00000000, 0xffffffff, 0xffffffff ); + TEST_RR_OP(34, mulh, 0xffffffff, 0xffffffff, 0x00000001 ); + TEST_RR_OP(35, mulh, 0xffffffff, 0x00000001, 0xffffffff ); + #------------------------------------------------------------- # Source/Destination tests #-------------------------------------------------------------