From 0dc9075b95910eca00316d38178b0b885b4daa7f Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Thu, 19 Aug 2021 15:46:06 +0000 Subject: [PATCH] test_caller_bcd: mention reference implementation --- src/openpower/decoder/isa/test_caller_bcd.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/openpower/decoder/isa/test_caller_bcd.py b/src/openpower/decoder/isa/test_caller_bcd.py index 12b00b55..5cf3f2ef 100644 --- a/src/openpower/decoder/isa/test_caller_bcd.py +++ b/src/openpower/decoder/isa/test_caller_bcd.py @@ -319,6 +319,8 @@ class BCDTestCase(FHDLTestCase): self.run_tst("cbcdtd", mapping) def test_addg6s(self): + # Reference implementation for addg6s, adopted to Python. + # https://github.com/antonblanchard/microwatt/blob/master/execute1.vhdl def addg6s(a, b): def bits(value, bits): lsb = [((value >> bit) & 1) for bit in range(bits, -1, -1)] -- 2.30.2