From 4ca9a0382ef36018b6cad7e1699890c020177e54 Mon Sep 17 00:00:00 2001 From: lkcl Date: Sat, 9 Jul 2022 12:22:46 +0100 Subject: [PATCH] --- openpower/power_trans_ops.mdwn | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/openpower/power_trans_ops.mdwn b/openpower/power_trans_ops.mdwn index e89683eb5..002056459 100644 --- a/openpower/power_trans_ops.mdwn +++ b/openpower/power_trans_ops.mdwn @@ -10,21 +10,20 @@ and 59 for half-width (ending in s). As shown in Power ISA 3.1 Book III Appendix D Table 28 p1190 and Table 23 p1368, Major Opcode 63 has room -for 9 A-Form 5-bit XO instructions, 00001, 01001, 01010, 01011, -01101, 10000, 10001, 10011, 11011. +for 9 A-Form 5-bit XO instructions, Major Opcode 59 has 11 5-bit XO instructions, -00000, 00001, 00100, 00101, 00110, 00111, -10000, 10001, 10011, 10111, 11011. - -| opcode | Description | Major 63 | Major 59 | -| ------ | ---------------- | ---------------- | ----------- | -| fatan2(s) | atan2 arc tangent | 00001 | 00001 | -| fatan2pi(s)|atan2 arc tangent / pi | 01001 | 00111 | -| fpow(s) | x power of y | 10000 | 10000 | -| fpown(s) | x power of n (n int) | 10001 | 10001 | -| fpowr(s) | x power of y (x +ve) | 10011 | 10011 | -| frootn(s) | x power 1/n (n integer)| 11011 | 11011 | -| fhypot(s) | hypotenuse | 01101 | 10111 | +with some overlap leading to a partially orthogonal +set across full and half width. + +| opcode | Description | Major 63 | Major 59 | +| ------ | ---------------- | ---------------- | ----------- | +| fatan2(s) | atan2 arc tangent | 00001 | 00001 | +| fatan2pi(s)|atan2 arc tangent / pi | 01001 | 00111 | +| fpow(s) | x power of y | 10000 | 10000 | +| fpown(s) | x power of n (n int) | 10001 | 10001 | +| fpowr(s) | x power of y (x +ve) | 10011 | 10011 | +| frootn(s) | x power 1/n (n integer)| 11011 | 11011 | +| fhypot(s) | hypotenuse | 01101 | 10111 | # DRAFT List of 1-arg transcendental opcodes @@ -64,7 +63,8 @@ Recommended 10-bit XO with the low 5 LSBs 01100: # DRAFT List of 1-arg trigonometric opcodes These are X-Form, and are identical in Special Registers Altered to `fsqrt`. -Recommended Major Opcode 63 for full-width and 59 for half-width (ending in s). +Recommended Major Opcode 63 for full-width and 59 for half-width (ending in s) + Special Registers Altered: FPRF FR FI FX OX UX XX -- 2.30.2