split out instructions from openpower/isa/byterev.mdwn
authorJacob Lifshay <programmerjake@gmail.com>
Mon, 7 Aug 2023 23:04:00 +0000 (16:04 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Mon, 7 Aug 2023 23:06:58 +0000 (16:06 -0700)
openpower/isa/byterev.mdwn
openpower/isa/byterev/brd.mdwn [new file with mode: 0644]
openpower/isa/byterev/brd_code.mdwn [new file with mode: 0644]
openpower/isa/byterev/brh.mdwn [new file with mode: 0644]
openpower/isa/byterev/brh_code.mdwn [new file with mode: 0644]
openpower/isa/byterev/brw.mdwn [new file with mode: 0644]
openpower/isa/byterev/brw_code.mdwn [new file with mode: 0644]

index 41da2d835b209b1031fd219be504774472dbe84c..577ef980b37907f248561a1e6a03e97d44d68ec0 100644 (file)
@@ -1,54 +1,8 @@
 <!-- This defines instructions described in PowerISA Version 3.1B Book I -->
 <!-- Section 3.3.16 Byte-Reverse Instructions page 119 (145) -->
 
-# Byte-Reverse Halfword
+[[!inline pagenames="openpower/isa/byterev/brh" raw="yes"]]
 
-X-Form
-
-* brh RA,RS
-
-Pseudo-code:
-
-    RA <- ((RS)[8:15]  || (RS)[0:7]   ||
-           (RS)[24:31] || (RS)[16:23] ||
-           (RS)[40:47] || (RS)[32:39] ||
-           (RS)[56:63] || (RS)[48:55])
-
-Special Registers Altered:
-
-    None
-
-# Byte-Reverse Word
-
-X-Form
-
-* brw RA,RS
-
-Pseudo-code:
-
-    RA <- ((RS)[24:31] || (RS)[16:23] ||
-           (RS)[8:15]  || (RS)[0:7]   ||
-           (RS)[56:63] || (RS)[48:55] ||
-           (RS)[40:47] || (RS)[32:39])
-
-Special Registers Altered:
-
-    None
-
-# Byte-Reverse Doubleword
-
-X-Form
-
-* brd RA,RS
-
-Pseudo-code:
-
-    RA <- ((RS)[56:63] || (RS)[48:55] ||
-           (RS)[40:47] || (RS)[32:39] ||
-           (RS)[24:31] || (RS)[16:23] ||
-           (RS)[8:15]  || (RS)[0:7])
-
-Special Registers Altered:
-
-    None
+[[!inline pagenames="openpower/isa/byterev/brw" raw="yes"]]
 
+[[!inline pagenames="openpower/isa/byterev/brd" raw="yes"]]
diff --git a/openpower/isa/byterev/brd.mdwn b/openpower/isa/byterev/brd.mdwn
new file mode 100644 (file)
index 0000000..d73ca55
--- /dev/null
@@ -0,0 +1,14 @@
+# Byte-Reverse Doubleword
+
+X-Form
+
+* brd RA,RS
+
+Pseudo-code:
+
+[[!inline pagenames="openpower/isa/byterev/brd_code" raw="yes"]]
+
+Special Registers Altered:
+
+    None
+
diff --git a/openpower/isa/byterev/brd_code.mdwn b/openpower/isa/byterev/brd_code.mdwn
new file mode 100644 (file)
index 0000000..e5991ca
--- /dev/null
@@ -0,0 +1,4 @@
+    RA <- ((RS)[56:63] || (RS)[48:55] ||
+           (RS)[40:47] || (RS)[32:39] ||
+           (RS)[24:31] || (RS)[16:23] ||
+           (RS)[8:15]  || (RS)[0:7])
diff --git a/openpower/isa/byterev/brh.mdwn b/openpower/isa/byterev/brh.mdwn
new file mode 100644 (file)
index 0000000..1909215
--- /dev/null
@@ -0,0 +1,13 @@
+# Byte-Reverse Halfword
+
+X-Form
+
+* brh RA,RS
+
+Pseudo-code:
+
+[[!inline pagenames="openpower/isa/byterev/brh_code" raw="yes"]]
+
+Special Registers Altered:
+
+    None
diff --git a/openpower/isa/byterev/brh_code.mdwn b/openpower/isa/byterev/brh_code.mdwn
new file mode 100644 (file)
index 0000000..4da63bd
--- /dev/null
@@ -0,0 +1,4 @@
+    RA <- ((RS)[8:15]  || (RS)[0:7]   ||
+           (RS)[24:31] || (RS)[16:23] ||
+           (RS)[40:47] || (RS)[32:39] ||
+           (RS)[56:63] || (RS)[48:55])
diff --git a/openpower/isa/byterev/brw.mdwn b/openpower/isa/byterev/brw.mdwn
new file mode 100644 (file)
index 0000000..87ff066
--- /dev/null
@@ -0,0 +1,13 @@
+# Byte-Reverse Word
+
+X-Form
+
+* brw RA,RS
+
+Pseudo-code:
+
+[[!inline pagenames="openpower/isa/byterev/brw_code" raw="yes"]]
+
+Special Registers Altered:
+
+    None
diff --git a/openpower/isa/byterev/brw_code.mdwn b/openpower/isa/byterev/brw_code.mdwn
new file mode 100644 (file)
index 0000000..2438f38
--- /dev/null
@@ -0,0 +1,4 @@
+    RA <- ((RS)[24:31] || (RS)[16:23] ||
+           (RS)[8:15]  || (RS)[0:7]   ||
+           (RS)[56:63] || (RS)[48:55] ||
+           (RS)[40:47] || (RS)[32:39])