forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

VFPU prefixes

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
holger



Joined: 18 Aug 2005
Posts: 204

PostPosted: Thu Oct 06, 2005 5:37 am    Post subject: VFPU prefixes Reply with quote

Hi,

it seems that some VFPU instructions can swizzle/negate/replace-by-constant/mask/saturate vector components on the fly, nevertheless the opcode encoding rules seem somewhat complicated. Did anybody documented them somewhere?

see svn.pspdev.org/binutils-psp/opcodes/mips-dis.c, lines 1236 and below for an example.
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Thu Oct 06, 2005 5:43 am    Post subject: Reply with quote

You seem to be ignoring binutils-psp/gas/config/tc-mips.c where all of the VFPU operands execept for rotate and registers are implemented.

binutils-psp/include/opcode/mips.h may also be helpful.
Back to top
View user's profile Send private message
holger



Joined: 18 Aug 2005
Posts: 204

PostPosted: Thu Oct 06, 2005 5:48 am    Post subject: Reply with quote

oops, yes... thanks for the hint!
Back to top
View user's profile Send private message
holger



Joined: 18 Aug 2005
Posts: 204

PostPosted: Thu Oct 06, 2005 5:52 am    Post subject: Reply with quote

errrmmm... is it correct that prefixes in generated code actually appear as seperate vpfx instructions?
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Thu Oct 06, 2005 5:53 am    Post subject: Reply with quote

Yes, AFAIK.
Back to top
View user's profile Send private message
holger



Joined: 18 Aug 2005
Posts: 204

PostPosted: Thu Oct 06, 2005 5:55 am    Post subject: Reply with quote

ok, that brings light into the darkness.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group