[Libre-soc-bugs] [Bug 1072] implement fcvt/fmv instructions in ISACaller (ls006)

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Wed May 10 03:55:24 BST 2023


https://bugs.libre-soc.org/show_bug.cgi?id=1072

--- Comment #15 from Jacob Lifshay <programmerjake at gmail.com> ---
Ok, second attempt on the support-fields branch:

https://git.libre-soc.org/?p=openpower-isa.git;a=shortlog;h=a9aa701ca4cdcd245cde8f558a377f12107c710a

the oldest commit listed here and everything after is the same as in comment
#10, everything else has been reworked.

These two commits make double2single.mdwn match the spec pdf much more closely:

commit a9aa701ca4cdcd245cde8f558a377f12107c710a
Author: Jacob Lifshay <programmerjake at gmail.com>
Date:   Tue May 9 19:30:03 2023 -0700

    switch to using self.FPSCR

commit 52f503447cc2a4c2b1106bb0abe8139fa6771a5d
Author: Jacob Lifshay <programmerjake at gmail.com>
Date:   Tue May 9 19:27:41 2023 -0700

    switch to using FPSCRState for double2single.mdwn


@property FPSCR appears in two places, one in ISACaller where the fpscr
variable is available, the other is in ISACallerHelper since that is used
without ISACaller in test_caller_svp64_dct.py:

commit 7a34ff20acf34834c7878fecff574d844ba8a538
Author: Jacob Lifshay <programmerjake at gmail.com>
Date:   Tue May 9 19:16:37 2023 -0700

    add self.FPSCR

iirc you agreed this was fine since the XER[SO] syntax still works:

commit a50eb1eb70ee305ba3091455cf1473abd4a74fb2
Author: Jacob Lifshay <programmerjake at gmail.com>
Date:   Tue May 9 19:12:01 2023 -0700

    remove now-unnecessary SO global, since XER[SO] syntax now translates to
XER.SO

this is new, it supports translating UC1[UC2] where UC[12] are any uppercase
names to UC1.UC2 in the python, though has exceptions for GPR[RA] and similar:

commit 5178364866f48cc6ddd8c18c1801a508a2d65636
Author: Jacob Lifshay <programmerjake at gmail.com>
Date:   Tue May 9 18:54:26 2023 -0700

    support FPSCR[RN] syntax that translates to FPSCR.RN

this just changes XER's type to XERState, no pseudo-code changes whatsoever:

commit e7a8aef7d412b25eec6f1e74c40129faf4a0bc41
Author: Jacob Lifshay <programmerjake at gmail.com>
Date:   Tue May 9 18:48:47 2023 -0700

    add support for accessing XER using XER.SO syntax -- intended for new
pseudocode

this and everything older are unchanged from comment #10:

commit b04ec1880b731b71362cb3787a998aaf59eedb54
Author: Jacob Lifshay <programmerjake at gmail.com>
Date:   Tue May 9 00:27:19 2023 -0700

    SetFX is not a normal function -- it can assign to its input

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list