From 49330f613dfb6d0d25677d5e5539df0670be277c Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Thu, 1 Sep 2022 01:17:09 -0700 Subject: [PATCH] move fsins/fcoss to fptrans.mdwn -- they are transcendental not SV instructions --- openpower/isa/fptrans.mdwn | 40 ++++++++++++++++++++++++++++ openpower/isa/svfparith.mdwn | 37 ------------------------- src/openpower/decoder/isa/.gitignore | 1 + 3 files changed, 41 insertions(+), 37 deletions(-) create mode 100644 openpower/isa/fptrans.mdwn diff --git a/openpower/isa/fptrans.mdwn b/openpower/isa/fptrans.mdwn new file mode 100644 index 00000000..bae24491 --- /dev/null +++ b/openpower/isa/fptrans.mdwn @@ -0,0 +1,40 @@ + + + + +# [DRAFT] Floating SIN [Single] + +X-Form + +* fsins FRT,FRB (Rc=0) +* fsins. FRT,FRB (Rc=1) + +Pseudo-code: + + FRT <- FPSIN32(FRB) + +Special Registers Altered: + + FPRF FR FI + FX OX UX XX + VXSNAN VXISI VXIMZ + CR1 (if Rc=1) + +# [DRAFT] Floating COS [Single] + +X-Form + +* fcoss FRT,FRB (Rc=0) +* fcoss. FRT,FRB (Rc=1) + +Pseudo-code: + + FRT <- FPCOS32(FRB) + +Special Registers Altered: + + FPRF FR FI + FX OX UX XX + VXSNAN VXISI VXIMZ + CR1 (if Rc=1) + diff --git a/openpower/isa/svfparith.mdwn b/openpower/isa/svfparith.mdwn index 4fa9939b..a7b05457 100644 --- a/openpower/isa/svfparith.mdwn +++ b/openpower/isa/svfparith.mdwn @@ -254,40 +254,3 @@ Special Registers Altered: FX OX UX XX VXSNAN VXISI VXIMZ CR1 (if Rc=1) - -# [DRAFT] Floating SIN [Single] - -X-Form - -* fsins FRT,FRB (Rc=0) -* fsins. FRT,FRB (Rc=1) - -Pseudo-code: - - FRT <- FPSIN32(FRB) - -Special Registers Altered: - - FPRF FR FI - FX OX UX XX - VXSNAN VXISI VXIMZ - CR1 (if Rc=1) - -# [DRAFT] Floating COS [Single] - -X-Form - -* fcoss FRT,FRB (Rc=0) -* fcoss. FRT,FRB (Rc=1) - -Pseudo-code: - - FRT <- FPCOS32(FRB) - -Special Registers Altered: - - FPRF FR FI - FX OX UX XX - VXSNAN VXISI VXIMZ - CR1 (if Rc=1) - diff --git a/src/openpower/decoder/isa/.gitignore b/src/openpower/decoder/isa/.gitignore index ca22e277..c071e2ac 100644 --- a/src/openpower/decoder/isa/.gitignore +++ b/src/openpower/decoder/isa/.gitignore @@ -17,6 +17,7 @@ /fpload.py /fpmove.py /fpstore.py +/fptrans.py /sprset.py /stringldst.py /system.py -- 2.30.2