| View previous topic :: View next topic |
| Author |
Message |
holger
Joined: 18 Aug 2005 Posts: 204
|
Posted: Thu Oct 06, 2005 5:37 am Post subject: VFPU prefixes |
|
|
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 |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Thu Oct 06, 2005 5:43 am Post subject: |
|
|
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 |
|
 |
holger
Joined: 18 Aug 2005 Posts: 204
|
Posted: Thu Oct 06, 2005 5:48 am Post subject: |
|
|
| oops, yes... thanks for the hint! |
|
| Back to top |
|
 |
holger
Joined: 18 Aug 2005 Posts: 204
|
Posted: Thu Oct 06, 2005 5:52 am Post subject: |
|
|
| errrmmm... is it correct that prefixes in generated code actually appear as seperate vpfx instructions? |
|
| Back to top |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Thu Oct 06, 2005 5:53 am Post subject: |
|
|
| Yes, AFAIK. |
|
| Back to top |
|
 |
holger
Joined: 18 Aug 2005 Posts: 204
|
Posted: Thu Oct 06, 2005 5:55 am Post subject: |
|
|
| ok, that brings light into the darkness. |
|
| Back to top |
|
 |
|