mirror of
https://github.com/Decompollaborate/rabbitizer.git
synced 2024-12-26 18:14:51 +00:00
Add $ to special PS2 regs (#41)
* Add $ to special PS2 regs * Hide it behind gnuMode option * remove suffix from vclipw it has a suffixless version and one with .xyz, but it doesn't have one with .xy or .z like Rabbitizer currently emits * Regenerating tables --------- Co-authored-by: angie <angheloalf95@gmail.com>
This commit is contained in:
parent
a3c7c93b2d
commit
0f4691b409
@ -677,7 +677,7 @@ const RabbitizerInstrDescriptor RabbitizerInstrDescriptor_Descriptors[] = {
|
||||
[RABBITIZER_INSTR_ID_r5900_vmulaq] = { .operands={RAB_OPERAND_r5900_ACCxyzw, RAB_OPERAND_r5900_vfsxyzw, RAB_OPERAND_r5900_Q}, .instrSuffix=RABINSTRSUFFIX_R5900_xyzw },
|
||||
[RABBITIZER_INSTR_ID_r5900_vabs] = { .operands={RAB_OPERAND_r5900_vftxyzw, RAB_OPERAND_r5900_vfsxyzw}, .instrSuffix=RABINSTRSUFFIX_R5900_xyzw, .isFloat=true },
|
||||
[RABBITIZER_INSTR_ID_r5900_vmulai] = { .operands={RAB_OPERAND_r5900_ACCxyzw, RAB_OPERAND_r5900_vfsxyzw, RAB_OPERAND_r5900_I}, .instrSuffix=RABINSTRSUFFIX_R5900_xyzw },
|
||||
[RABBITIZER_INSTR_ID_r5900_vclipw] = { .operands={RAB_OPERAND_r5900_vfsxyzw, RAB_OPERAND_r5900_vftn}, .instrSuffix=RABINSTRSUFFIX_R5900_xyzw, .isFloat=true },
|
||||
[RABBITIZER_INSTR_ID_r5900_vclipw] = { .operands={RAB_OPERAND_r5900_vfsxyzw, RAB_OPERAND_r5900_vftn}, .isFloat=true },
|
||||
[RABBITIZER_INSTR_ID_r5900_vaddaq] = { .operands={RAB_OPERAND_r5900_ACCxyzw, RAB_OPERAND_r5900_vfsxyzw, RAB_OPERAND_r5900_Q}, .instrSuffix=RABINSTRSUFFIX_R5900_xyzw, .isFloat=true },
|
||||
[RABBITIZER_INSTR_ID_r5900_vmaddaq] = { .operands={RAB_OPERAND_r5900_ACCxyzw, RAB_OPERAND_r5900_vfsxyzw, RAB_OPERAND_r5900_Q}, .instrSuffix=RABINSTRSUFFIX_R5900_xyzw, .isFloat=true },
|
||||
[RABBITIZER_INSTR_ID_r5900_vaddai] = { .operands={RAB_OPERAND_r5900_ACCxyzw, RAB_OPERAND_r5900_vfsxyzw, RAB_OPERAND_r5900_I}, .instrSuffix=RABINSTRSUFFIX_R5900_xyzw, .isFloat=true },
|
||||
|
@ -15,7 +15,11 @@ size_t RabbitizerOperandType_process_r5900_I(UNUSED const RabbitizerInstruction
|
||||
UNUSED const char *immOverride, UNUSED size_t immOverrideLength) {
|
||||
size_t totalSize = 0;
|
||||
|
||||
RABUTILS_BUFFER_CPY(dst, totalSize, "I");
|
||||
if (RabbitizerConfig_Cfg.toolchainTweaks.gnuMode) {
|
||||
RABUTILS_BUFFER_CPY(dst, totalSize, "$I");
|
||||
} else {
|
||||
RABUTILS_BUFFER_CPY(dst, totalSize, "I");
|
||||
}
|
||||
|
||||
return totalSize;
|
||||
}
|
||||
@ -24,7 +28,11 @@ size_t RabbitizerOperandType_process_r5900_Q(UNUSED const RabbitizerInstruction
|
||||
UNUSED const char *immOverride, UNUSED size_t immOverrideLength) {
|
||||
size_t totalSize = 0;
|
||||
|
||||
RABUTILS_BUFFER_CPY(dst, totalSize, "Q");
|
||||
if (RabbitizerConfig_Cfg.toolchainTweaks.gnuMode) {
|
||||
RABUTILS_BUFFER_CPY(dst, totalSize, "$Q");
|
||||
} else {
|
||||
RABUTILS_BUFFER_CPY(dst, totalSize, "Q");
|
||||
}
|
||||
|
||||
return totalSize;
|
||||
}
|
||||
@ -33,7 +41,11 @@ size_t RabbitizerOperandType_process_r5900_R(UNUSED const RabbitizerInstruction
|
||||
UNUSED const char *immOverride, UNUSED size_t immOverrideLength) {
|
||||
size_t totalSize = 0;
|
||||
|
||||
RABUTILS_BUFFER_CPY(dst, totalSize, "R");
|
||||
if (RabbitizerConfig_Cfg.toolchainTweaks.gnuMode) {
|
||||
RABUTILS_BUFFER_CPY(dst, totalSize, "$R");
|
||||
} else {
|
||||
RABUTILS_BUFFER_CPY(dst, totalSize, "R");
|
||||
}
|
||||
|
||||
return totalSize;
|
||||
}
|
||||
@ -42,7 +54,11 @@ size_t RabbitizerOperandType_process_r5900_ACC(UNUSED const RabbitizerInstructio
|
||||
UNUSED const char *immOverride, UNUSED size_t immOverrideLength) {
|
||||
size_t totalSize = 0;
|
||||
|
||||
RABUTILS_BUFFER_CPY(dst, totalSize, "ACC");
|
||||
if (RabbitizerConfig_Cfg.toolchainTweaks.gnuMode) {
|
||||
RABUTILS_BUFFER_CPY(dst, totalSize, "$ACC");
|
||||
} else {
|
||||
RABUTILS_BUFFER_CPY(dst, totalSize, "ACC");
|
||||
}
|
||||
|
||||
return totalSize;
|
||||
}
|
||||
|
@ -216,7 +216,6 @@ Note: opcode is flo | (
|
||||
RABBITIZER_DEF_INSTR_ID(
|
||||
r5900, 0x1F, vclipw,
|
||||
.operands={RAB_OPERAND_r5900_vfsxyzw, RAB_OPERAND_r5900_vftn},
|
||||
.instrSuffix=RABINSTRSUFFIX_R5900_xyzw,
|
||||
.isFloat=true
|
||||
) // Clip
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user