aboutsummaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorPavel I. Kryukov <pavel.kryukov@phystech.edu>2022-06-09 15:27:43 +0300
committerGitHub <noreply@github.com>2022-06-09 05:27:43 -0700
commit08ca2b1ed5fcce8d08bd61a861e71f6e222905eb (patch)
tree45e9c141067c4a6eb6dc9ebb971c0b4e5cc8c8fa /test.py
parent660a1004db4683c6fa2618ce2b81e4d464d4b3d1 (diff)
downloadriscv-opcodes-08ca2b1ed5fcce8d08bd61a861e71f6e222905eb.zip
riscv-opcodes-08ca2b1ed5fcce8d08bd61a861e71f6e222905eb.tar.gz
riscv-opcodes-08ca2b1ed5fcce8d08bd61a861e71f6e222905eb.tar.bz2
Check for overlaps between different fields (#122)
Diffstat (limited to 'test.py')
-rw-r--r--test.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test.py b/test.py
index e3f6443..9ddd072 100644
--- a/test.py
+++ b/test.py
@@ -21,6 +21,9 @@ class EncodingLineTest(unittest.TestCase):
def test_overlapping(self):
self.assertError('jol rd jimm20 6..2=0x00 3..0=7')
+ self.assertError('jol rd jimm20 6..2=0x00 3=1')
+ self.assertError('jol rd jimm20 6..2=0x00 10=1')
+ self.assertError('jol rd jimm20 6..2=0x00 31..10=1')
def test_invalid_order(self):
self.assertError('jol 2..6=0x1b')