From: Jacob Lifshay Date: Mon, 7 Aug 2023 23:04:00 +0000 (-0700) Subject: split out instructions from openpower/isa/byterev.mdwn X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6ac4682c62b8dc93a4770bebc0299c2e077f2c1f;p=openpower-isa.git split out instructions from openpower/isa/byterev.mdwn --- diff --git a/openpower/isa/byterev.mdwn b/openpower/isa/byterev.mdwn index 41da2d83..577ef980 100644 --- a/openpower/isa/byterev.mdwn +++ b/openpower/isa/byterev.mdwn @@ -1,54 +1,8 @@ -# 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 index 00000000..d73ca55e --- /dev/null +++ b/openpower/isa/byterev/brd.mdwn @@ -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 index 00000000..e5991cae --- /dev/null +++ b/openpower/isa/byterev/brd_code.mdwn @@ -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 index 00000000..1909215f --- /dev/null +++ b/openpower/isa/byterev/brh.mdwn @@ -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 index 00000000..4da63bdc --- /dev/null +++ b/openpower/isa/byterev/brh_code.mdwn @@ -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 index 00000000..87ff066e --- /dev/null +++ b/openpower/isa/byterev/brw.mdwn @@ -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 index 00000000..2438f382 --- /dev/null +++ b/openpower/isa/byterev/brw_code.mdwn @@ -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])