Better coverage of mul high instructions
[riscv-tests.git] / isa / rv32ui / mulh.S
index ef695c0b5c9f346a6c47b2a278bff244b4e386b9..3b34b6abdcaa22c7df7c2d703cca75d592898e82 100644 (file)
@@ -1,3 +1,5 @@
+# See LICENSE for license details.
+
 #*****************************************************************************
 # mulh.S
 #-----------------------------------------------------------------------------
@@ -23,6 +25,16 @@ RVTEST_CODE_BEGIN
   TEST_RR_OP( 6,  mulh, 0x00000000, 0x80000000, 0x00000000 );
   TEST_RR_OP( 7,  mulh, 0x00000000, 0x80000000, 0x00000000 );
 
+  TEST_RR_OP(30,  mulh, 0xfffe0101, 0xaaaaaaab, 0x0002fe7d );
+  TEST_RR_OP(31,  mulh, 0xfffe0101, 0x0002fe7d, 0xaaaaaaab );
+
+  TEST_RR_OP(32,  mulh, 0xfe010000, 0xff000000, 0xff000000 );
+
+  TEST_RR_OP(33,  mulh, 0xfffffffe, 0xffffffff, 0xffffffff );
+  TEST_RR_OP(34,  mulh, 0xffffffff, 0xffffffff, 0x00000001 );
+  TEST_RR_OP(35,  mulh, 0xffffffff, 0x00000001, 0xffffffff );
+
+
   #-------------------------------------------------------------
   # Source/Destination tests
   #-------------------------------------------------------------