poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[COMMITTED] testsuite: add test for the iogetv instruction


From: Jose E. Marchesi
Subject: [COMMITTED] testsuite: add test for the iogetv instruction
Date: Thu, 19 Sep 2024 11:49:31 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

2024-09-19  Jose E. Marchesi  <jemarch@gnu.org>

        * testsuite/poke.pvm/pvm-insns-test.pk: Add test for iovolatile.
---
 ChangeLog                            |  4 ++++
 testsuite/poke.pvm/pvm-insns-test.pk | 13 +++++++++++++
 2 files changed, 17 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index e34f25d9..de12717f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2024-09-19  Jose E. Marchesi  <jemarch@gnu.org>
+
+       * testsuite/poke.pvm/pvm-insns-test.pk: Add test for iovolatile.
+
 2024-09-19  Jose E. Marchesi  <jemarch@gnu.org>
 
        * poke/pk-cmd-info.pk (pk_info_ios): Fix printing of the type of
diff --git a/testsuite/poke.pvm/pvm-insns-test.pk 
b/testsuite/poke.pvm/pvm-insns-test.pk
index 77e99af2..b49d8853 100644
--- a/testsuite/poke.pvm/pvm-insns-test.pk
+++ b/testsuite/poke.pvm/pvm-insns-test.pk
@@ -127,6 +127,19 @@ var tests = [
             };
       }
   },
+  PkTest {
+    name = "iogetv",
+    func = lambda (string name) void:
+      {
+        with_temp_ios
+          :do lambda void:
+            {
+              /* Memory IO spaces are non-volatile by default.  */
+              assert (asm int<32>: ("iogetv; nip" : get_ios)
+                      == 0);
+            };
+      }
+  },
   /* Integer overflow instructions.  */
   PkTest {
     name = "addiof",
-- 
2.30.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]