VFPU prefixes

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
holger
Posts: 204
Joined: Thu Aug 18, 2005 10:57 am

VFPU prefixes

Post by holger »

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.
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

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.
holger
Posts: 204
Joined: Thu Aug 18, 2005 10:57 am

Post by holger »

oops, yes... thanks for the hint!
holger
Posts: 204
Joined: Thu Aug 18, 2005 10:57 am

Post by holger »

errrmmm... is it correct that prefixes in generated code actually appear as seperate vpfx instructions?
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

Yes, AFAIK.
holger
Posts: 204
Joined: Thu Aug 18, 2005 10:57 am

Post by holger »

ok, that brings light into the darkness.
Post Reply