From: Luke Kenneth Casson Leighton Date: Sat, 20 Feb 2021 23:38:17 +0000 (+0000) Subject: comments on sv.add. Rc=1 unit test X-Git-Tag: convert-csv-opcode-to-binary~186 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7cf0b2e637c02053a1a23c5a643e8c6b1c5bb942;p=soc.git comments on sv.add. Rc=1 unit test --- diff --git a/src/soc/decoder/isa/test_caller_svp64.py b/src/soc/decoder/isa/test_caller_svp64.py index 27a21526..676a87d1 100644 --- a/src/soc/decoder/isa/test_caller_svp64.py +++ b/src/soc/decoder/isa/test_caller_svp64.py @@ -107,9 +107,9 @@ class DecoderTestCase(FHDLTestCase): self._check_regs(sim, expected_regs) def test_sv_add_cr(self): - # adds: - # 1 = 5 + 9 => 0x5555 = 0x4321+0x1234 - # 2 = 6 + 10 => 0x3334 = 0x2223+0x1111 + # adds when Rc=1: TODO CRs higher up + # 1 = 5 + 9 => 0 = -1+1 CR0=0b100 + # 2 = 6 + 10 => 0x3334 = 0x2223+0x1111 CR1=0b010 isa = SVP64Asm(['sv.add. 1.v, 5.v, 9.v' ]) lst = list(isa)