From 4117bf6b12b2de928ca19e9638376f75f7be6d7e Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Fri, 29 Jul 2016 14:47:26 -0700 Subject: Add RV32 RVC and breakpoint tests --- isa/rv64uc/rvc.S | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'isa/rv64uc') diff --git a/isa/rv64uc/rvc.S b/isa/rv64uc/rvc.S index 4f2675a..6e3cf33 100644 --- a/isa/rv64uc/rvc.S +++ b/isa/rv64uc/rvc.S @@ -47,8 +47,11 @@ RVTEST_CODE_BEGIN #endif RVC_TEST_CASE (11, s0, 0xffffffffffffffe1, c.lui s0, 0xfffe1; c.srai s0, 12) +#ifdef __riscv64 RVC_TEST_CASE (12, s0, 0x000fffffffffffe1, c.lui s0, 0xfffe1; c.srli s0, 12) - RVC_TEST_CASE (13, s0, 0x000fffffffffffe1, c.lui s0, 0xfffe1; c.srli s0, 12) +#else + RVC_TEST_CASE (12, s0, 0x000fffe1, c.lui s0, 0xfffe1; c.srli s0, 12) +#endif RVC_TEST_CASE (14, s0, ~0x11, c.li s0, -2; c.andi s0, ~0x10) RVC_TEST_CASE (15, s1, 14, li s1, 20; li a0, 6; c.sub s1, a0) RVC_TEST_CASE (16, s1, 18, li s1, 20; li a0, 6; c.xor s1, a0) -- cgit v1.1