From 610b50a693e736e2fa65d261ba4ead4e84d04631 Mon Sep 17 00:00:00 2001 From: David Harris Date: Thu, 23 Mar 2023 06:38:00 -0700 Subject: [PATCH] Added new tests from class --- tests/coverage/badinstr.S | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/coverage/badinstr.S b/tests/coverage/badinstr.S index ec875eaac..7714ab07b 100644 --- a/tests/coverage/badinstr.S +++ b/tests/coverage/badinstr.S @@ -30,7 +30,12 @@ main: .word 0x00000033 // legal R-type instruction .word 0x80000033 // illegal R-type instruction .word 0x00007003 // illegal Load instruction + .word 0x80005013 // illegal I-type instruction: srli: op = 0010011, funct3 = 101, funct7 = 1000000 .word 0x00000000 // illegal instruction + .word 0x0000701B // Illegal IW instruction + .word 0x00004023 // Illegal store instruction + .word 0x0400003B // Illegal RW or MulDivW instruction + .word 0x00007067 // Illegal JALR instruction j done