correct assrmbler in test_pysvpy4dis.py
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 13 Sep 2022 19:31:45 +0000 (20:31 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 13 Sep 2022 19:31:56 +0000 (20:31 +0100)
src/openpower/sv/trans/test_pysvp64dis.py

index d730582bf1aaac2b6c86595a62aef02c4688221f..977ec7d60bc148adea9ad577c085b7fd6e48026e 100644 (file)
@@ -84,7 +84,6 @@ class SVSTATETestCase(unittest.TestCase):
     def test_7_batch(self):
         "these come from https://bugs.libre-soc.org/show_bug.cgi?id=917#c25"
         expected = [
-                    "addis 2,12,0",
                     "addi 2,2,0",
                     "addis 9,2,0",
                     "addi 9,9,0",
@@ -105,7 +104,7 @@ class SVSTATETestCase(unittest.TestCase):
                     "sv.lfs *40,256(5)",
                     "sv.fmuls *32,*32,*40",
                     "sv.fsubs 0,0,*32",
-                    "addi 4,4,65408",
+                    "addi 4,4,-128",
                     "stfs 0,0(6)",
                     "add 6,6,7",
                     "addi 4,4,4",
@@ -134,16 +133,16 @@ class SVSTATETestCase(unittest.TestCase):
                     "sv.fsubs 0,0,*40",
                     "sv.fmuls *32,*32,*48",
                     "sv.fsubs 1,1,*32",
-                    "addi 4,4,65408",
-                    "addi 16,16,65408",
+                    "addi 4,4,-128",
+                    "addi 16,16,-128",
                     "stfs 0,0(6)",
                     "add 6,6,7",
                     "stfs 1,0(10)",
                     "subf 10,7,10",
                     "addi 8,8,4",
                     "addi 4,4,4",
-                    "addi 16,16,65532",
-                    "bc 16,0,0xff4c",
+                    "addi 16,16,-4",
+                    "bc 16,0,-0xb4",
                     "addi 5,3,128",
                     "addi 4,4,128",
                     "lfiwax 0,0,9",