Share code between rv32ui and rv64ui tests
[riscv-tests.git] / isa / rv64ui / sll.S
index b6c2fb382e98897af0a0c27d2c65c0a490e3529a..31037d16b06637afe4e7a863366825008ead759e 100644 (file)
@@ -41,7 +41,13 @@ RVTEST_CODE_BEGIN
   TEST_RR_OP( 18, sll, 0x0000000042424242, 0x0000000021212121, 0xffffffffffffffc1 );
   TEST_RR_OP( 19, sll, 0x0000001090909080, 0x0000000021212121, 0xffffffffffffffc7 );
   TEST_RR_OP( 20, sll, 0x0000084848484000, 0x0000000021212121, 0xffffffffffffffce );
+
+#ifdef __riscv64
   TEST_RR_OP( 21, sll, 0x8000000000000000, 0x0000000021212121, 0xffffffffffffffff );
+  TEST_RR_OP( 50, sll, 0x8000000000000000, 0x0000000000000001, 63 );
+  TEST_RR_OP( 51, sll, 0xffffff8000000000, 0xffffffffffffffff, 39 );
+  TEST_RR_OP( 52, sll, 0x0909080000000000, 0x0000000021212121, 43 );
+#endif
 
   #-------------------------------------------------------------
   # Source/Destination tests