[Libre-soc-bugs] [Bug 477] add add instructions to power-instruction-analyzer

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Fri Sep 4 05:09:10 BST 2020


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

Jacob Lifshay <programmerjake at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
         Resolution|---                         |FIXED

--- Comment #9 from Jacob Lifshay <programmerjake at gmail.com> ---
https://salsa.debian.org/Kazan-team/power-instruction-analyzer/-/tree/e828d2acecc25a82d5c29b765163a10993547566

Note that you will probably have to run `rustup upgrade` if you run into
compile errors since I'm using some features from a very recent version of
rustc.

I finished adding all add-style instructions without immediate operands:
add[o][.]
subf[o][.]
addc[o][.]
subfc[o][.]
adde[o][.]
subfe[o][.]
addme[o][.]
subfme[o][.]
addze[o][.]
subfze[o][.]
addex -- only valid immediate is 0 so I included it
neg[o][.]

addex was *extra* fun to implement since the version of LLVM used in Rust
doesn't even support that instruction, so I had to write lots of workarounds.

Adding instructions with immediates is waay more work because the only
realistic option to support all immediate values is to JIT compile the
instruction once the immediate is known. If we decide that we want to do that,
it should be a separate bug report.

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


More information about the libre-soc-bugs mailing list