overdrivenpotato / rust-psp

Rust on PSP. Panic and allocation support. Access PSP system libraries.
Other
638 stars 33 forks source link

Add more vfpu instructions #63

Closed sajattack closed 9 months ago

sajattack commented 4 years ago

From http://hlide.free.fr Tracking:

sajattack commented 4 years ago

There is a difference in what we have and what hlide says for vf2in and vi2f.

sajattack commented 4 years ago

I left the remainder for you @overdrivenpotato because I'm not exactly sure how to do their encodings.

hlide commented 3 years ago

Hi, is the list complete? I'm a little rusty.

sajattack commented 3 years ago

The list is what was missing when this PR was created, not a complete list, and the ones without checkmarks are what remain. I think it should be complete when all these are done.

hlide commented 3 years ago

There is a difference in what we have and what hlide says for vf2in and vi2f.

What do you mean?

sajattack commented 3 years ago

There is a difference in what we have and what hlide says for vf2in and vi2f.

What do you mean?

I don't remember. Looks the same now. Either I fixed it or I was confused.

hlide commented 3 years ago

Ok, I believe it is the "scale" which is missing in my tables (they are set as 00000).

hlide commented 3 years ago

I believe MTVC/MFVC are missing. While MTV/MTF allow transferring between scalar VFPU registers and MIPS registers. MTVC/MFVC allow transferring between control VFPU register (like RND or conditional flags registers) and MIPS registers. VMTVC/VMFVC allow transferring between control VFPU register (like RND or conditional flags registers) and scalar VFPU registers.

sajattack commented 2 years ago

@overdrivenpotato should we close this?

overdrivenpotato commented 2 years ago

No, these instructions should definitely still be implemented. I think it's possible to implement them with the current asm!-based trickery, but ultimately if not, we can write a procedural macro.

sajattack commented 2 years ago

Yeah, the main question was whether the work done here is transferrable to the new macro or if we need to just redo it.

sajattack commented 9 months ago

superceded by #160