mirror of
https://github.com/Decompollaborate/rabbitizer.git
synced 2025-01-17 07:11:27 +00:00
b51b62da45
* setup ALLEGREX * more setup * clo * fix * Implement SPECIAL_RS and SPECIAL_SA instructions * more table placeholders * Implement bshfl instructions * Rename to R4000Allegrex * Implement SPECIAL instructions * Add tests * Remove some duplicated tests * Implement SPECIAL3 instructions * fix bug in test * update * Implement COPz * Implement SPECIAL2 instructions * Implement COP1 * Yeet cop3 * som tests * bvf, bvfl, bvt, bvtl * fix bshfl prefix * need to implement the vfpu registers * implement vt_7? * R4000AllegrexVF -> R4000AllegrexVScalar * Add test suite to compare with the sn toolchain decoding * more vfpu test cases * forgor this * I can't decide how to name these registers * Prepare tables for all register types * Fix typo * Implement vector scalar register operands * Implement quad registers * Fix tests? * svl.q, svr.q * Implement a bunch of vfpu0 instructions * implement registers for `.t` and `.p` instructions * Implement VFPU1 instructions * bleh * VFPU1, VFPU3 and `vcmp.` * Fix wrong register type on some instructions * start vfpu3 * Implement VFPU3 instructions * start categorizing VFPU4 * Categorize VFPU5 * VFPU6 identification * Identify VFPU7 * COP2 is weird * organize COP2 a bit * Add test cases for VFPU4 FMT * VFPU4 FMT2 stuff * VFPU4 FMT3 stuff * VFPU5 stuff * VFPU6 stuff * VFPU7 stuff * Implement COP2 instructions * Implement vmov, vabs and vneg * VPFU4 FMT0 FMT0 FMT0 implemented * VFPU FMT0 FMT0 FMT2 * vnrcp, vnsin, vrexp2 * vrnds, vrndi, vrndf1, vrndf2 * Change tests a bit * vf2h, vh2f, vsbz, vlgb * vuc2ifs, vc2i, vus2i, vs2i, vi2uc, vi2c, vi2us, vi2s * vsrt1, vsrt2, vbfy1, vbfy2, vocp, vsocp, vfad, vavg * vsrt3, vsrt4, vsgn * vmfvc and vmtvc placeholders * vt4444, vt5551, vt5650 * vcst placeholder * vf2in * vf2iz * vf2iu, vf2id, vi2f * vcmovt, vcmovf * vwbn.s, viim.s, vfim.s * vpfxs, vpfxt, vpfxd, vnop, vsync, vflush * vmmov, vmidt, vmzero, vmone * vrot * vmmul, vhtfm2, vtfm2, vhtfm3, vtfm3, vhtfm4, vtfm4, vmscl, vcrsp, vqmul * Implement matrix operands * fix matrix operands * Fix `illegal` tests * hack out a way to check the test cases are assemblable * test-fixing: branches * fix more test cases * fix vmfvc and vmtvc * more test fixing * vdiv and fix operand R323 * more test fixing * Fix matrix operands * implement vcmp comparisons * fix vsync2 * vsqrt and vrndf1 fixes * Implement "constant" operand for `vcst` * Add missing operand of vf2in, vf2iz, vf2iu, vf2id, vi2f * Add missing vcmovt and vcmovf operands * Add missing vwbn operand * Tests cases for vmmul * Fix vtfm2 * Implement "transpose matrix register" * Add placeholders for the remaining missing operands * Implement viim operand * Implement vrot code operand * placeholders for rp and wp operands * test cases for vpfxs, vpfxt and vpfxd * Properly implement rpx, rpy, rpz and rpw * Properly implement wpx, wpy, wpz and wpw operands * Implement vfim * changelog * readme * some cleanup * Restructure some tables * more table restructure * fix tests * more table yeeting * more cleanup * more cleanup * reanming * moar * fmt
145 lines
11 KiB
C
Generated
145 lines
11 KiB
C
Generated
/* SPDX-FileCopyrightText: © 2022-2024 Decompollaborate */
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
/* Automatically generated. DO NOT MODIFY */
|
|
|
|
#ifndef instrOpercandCallbacks_array_h_automatic
|
|
#define instrOpercandCallbacks_array_h_automatic
|
|
|
|
const OperandCallback instrOpercandCallbacks[] = {
|
|
[RAB_OPERAND_cpu_rs] = RabbitizerOperandType_process_cpu_rs,
|
|
[RAB_OPERAND_cpu_rt] = RabbitizerOperandType_process_cpu_rt,
|
|
[RAB_OPERAND_cpu_rd] = RabbitizerOperandType_process_cpu_rd,
|
|
[RAB_OPERAND_cpu_sa] = RabbitizerOperandType_process_cpu_sa,
|
|
[RAB_OPERAND_cpu_zero] = RabbitizerOperandType_process_cpu_zero,
|
|
[RAB_OPERAND_cpu_cop0d] = RabbitizerOperandType_process_cpu_cop0d,
|
|
[RAB_OPERAND_cpu_fs] = RabbitizerOperandType_process_cpu_fs,
|
|
[RAB_OPERAND_cpu_ft] = RabbitizerOperandType_process_cpu_ft,
|
|
[RAB_OPERAND_cpu_fd] = RabbitizerOperandType_process_cpu_fd,
|
|
[RAB_OPERAND_cpu_cop1cs] = RabbitizerOperandType_process_cpu_cop1cs,
|
|
[RAB_OPERAND_cpu_cop2t] = RabbitizerOperandType_process_cpu_cop2t,
|
|
[RAB_OPERAND_cpu_cop2cd] = RabbitizerOperandType_process_cpu_cop2cd,
|
|
[RAB_OPERAND_cpu_op] = RabbitizerOperandType_process_cpu_op,
|
|
[RAB_OPERAND_cpu_hint] = RabbitizerOperandType_process_cpu_hint,
|
|
[RAB_OPERAND_cpu_code] = RabbitizerOperandType_process_cpu_code,
|
|
[RAB_OPERAND_cpu_code_lower] = RabbitizerOperandType_process_cpu_code_lower,
|
|
[RAB_OPERAND_cpu_copraw] = RabbitizerOperandType_process_cpu_copraw,
|
|
[RAB_OPERAND_cpu_label] = RabbitizerOperandType_process_cpu_label,
|
|
[RAB_OPERAND_cpu_immediate] = RabbitizerOperandType_process_cpu_immediate,
|
|
[RAB_OPERAND_cpu_branch_target_label] = RabbitizerOperandType_process_cpu_branch_target_label,
|
|
[RAB_OPERAND_cpu_immediate_base] = RabbitizerOperandType_process_cpu_immediate_base,
|
|
[RAB_OPERAND_cpu_maybe_rd_rs] = RabbitizerOperandType_process_cpu_maybe_rd_rs,
|
|
[RAB_OPERAND_rsp_rs] = RabbitizerOperandType_process_rsp_rs,
|
|
[RAB_OPERAND_rsp_rt] = RabbitizerOperandType_process_rsp_rt,
|
|
[RAB_OPERAND_rsp_rd] = RabbitizerOperandType_process_rsp_rd,
|
|
[RAB_OPERAND_rsp_cop0d] = RabbitizerOperandType_process_rsp_cop0d,
|
|
[RAB_OPERAND_rsp_cop2t] = RabbitizerOperandType_process_rsp_cop2t,
|
|
[RAB_OPERAND_rsp_cop2cd] = RabbitizerOperandType_process_rsp_cop2cd,
|
|
[RAB_OPERAND_rsp_vs] = RabbitizerOperandType_process_rsp_vs,
|
|
[RAB_OPERAND_rsp_vt] = RabbitizerOperandType_process_rsp_vt,
|
|
[RAB_OPERAND_rsp_vd] = RabbitizerOperandType_process_rsp_vd,
|
|
[RAB_OPERAND_rsp_hint] = RabbitizerOperandType_process_rsp_hint,
|
|
[RAB_OPERAND_rsp_vt_elementhigh] = RabbitizerOperandType_process_rsp_vt_elementhigh,
|
|
[RAB_OPERAND_rsp_vt_elementlow] = RabbitizerOperandType_process_rsp_vt_elementlow,
|
|
[RAB_OPERAND_rsp_vd_de] = RabbitizerOperandType_process_rsp_vd_de,
|
|
[RAB_OPERAND_rsp_vs_index] = RabbitizerOperandType_process_rsp_vs_index,
|
|
[RAB_OPERAND_rsp_offset_rs] = RabbitizerOperandType_process_rsp_offset_rs,
|
|
[RAB_OPERAND_rsp_immediate_base] = RabbitizerOperandType_process_rsp_immediate_base,
|
|
[RAB_OPERAND_rsp_maybe_rd_rs] = RabbitizerOperandType_process_rsp_maybe_rd_rs,
|
|
[RAB_OPERAND_r3000gte_sf] = RabbitizerOperandType_process_r3000gte_sf,
|
|
[RAB_OPERAND_r3000gte_mx] = RabbitizerOperandType_process_r3000gte_mx,
|
|
[RAB_OPERAND_r3000gte_v] = RabbitizerOperandType_process_r3000gte_v,
|
|
[RAB_OPERAND_r3000gte_cv] = RabbitizerOperandType_process_r3000gte_cv,
|
|
[RAB_OPERAND_r3000gte_lm] = RabbitizerOperandType_process_r3000gte_lm,
|
|
[RAB_OPERAND_r4000allegrex_s_vs] = RabbitizerOperandType_process_r4000allegrex_s_vs,
|
|
[RAB_OPERAND_r4000allegrex_s_vt] = RabbitizerOperandType_process_r4000allegrex_s_vt,
|
|
[RAB_OPERAND_r4000allegrex_s_vd] = RabbitizerOperandType_process_r4000allegrex_s_vd,
|
|
[RAB_OPERAND_r4000allegrex_s_vt_imm] = RabbitizerOperandType_process_r4000allegrex_s_vt_imm,
|
|
[RAB_OPERAND_r4000allegrex_s_vd_imm] = RabbitizerOperandType_process_r4000allegrex_s_vd_imm,
|
|
[RAB_OPERAND_r4000allegrex_p_vs] = RabbitizerOperandType_process_r4000allegrex_p_vs,
|
|
[RAB_OPERAND_r4000allegrex_p_vt] = RabbitizerOperandType_process_r4000allegrex_p_vt,
|
|
[RAB_OPERAND_r4000allegrex_p_vd] = RabbitizerOperandType_process_r4000allegrex_p_vd,
|
|
[RAB_OPERAND_r4000allegrex_t_vs] = RabbitizerOperandType_process_r4000allegrex_t_vs,
|
|
[RAB_OPERAND_r4000allegrex_t_vt] = RabbitizerOperandType_process_r4000allegrex_t_vt,
|
|
[RAB_OPERAND_r4000allegrex_t_vd] = RabbitizerOperandType_process_r4000allegrex_t_vd,
|
|
[RAB_OPERAND_r4000allegrex_q_vs] = RabbitizerOperandType_process_r4000allegrex_q_vs,
|
|
[RAB_OPERAND_r4000allegrex_q_vt] = RabbitizerOperandType_process_r4000allegrex_q_vt,
|
|
[RAB_OPERAND_r4000allegrex_q_vd] = RabbitizerOperandType_process_r4000allegrex_q_vd,
|
|
[RAB_OPERAND_r4000allegrex_q_vt_imm] = RabbitizerOperandType_process_r4000allegrex_q_vt_imm,
|
|
[RAB_OPERAND_r4000allegrex_mp_vs] = RabbitizerOperandType_process_r4000allegrex_mp_vs,
|
|
[RAB_OPERAND_r4000allegrex_mp_vt] = RabbitizerOperandType_process_r4000allegrex_mp_vt,
|
|
[RAB_OPERAND_r4000allegrex_mp_vd] = RabbitizerOperandType_process_r4000allegrex_mp_vd,
|
|
[RAB_OPERAND_r4000allegrex_mp_vs_transpose] = RabbitizerOperandType_process_r4000allegrex_mp_vs_transpose,
|
|
[RAB_OPERAND_r4000allegrex_mt_vs] = RabbitizerOperandType_process_r4000allegrex_mt_vs,
|
|
[RAB_OPERAND_r4000allegrex_mt_vt] = RabbitizerOperandType_process_r4000allegrex_mt_vt,
|
|
[RAB_OPERAND_r4000allegrex_mt_vd] = RabbitizerOperandType_process_r4000allegrex_mt_vd,
|
|
[RAB_OPERAND_r4000allegrex_mt_vs_transpose] = RabbitizerOperandType_process_r4000allegrex_mt_vs_transpose,
|
|
[RAB_OPERAND_r4000allegrex_mq_vs] = RabbitizerOperandType_process_r4000allegrex_mq_vs,
|
|
[RAB_OPERAND_r4000allegrex_mq_vt] = RabbitizerOperandType_process_r4000allegrex_mq_vt,
|
|
[RAB_OPERAND_r4000allegrex_mq_vd] = RabbitizerOperandType_process_r4000allegrex_mq_vd,
|
|
[RAB_OPERAND_r4000allegrex_mq_vs_transpose] = RabbitizerOperandType_process_r4000allegrex_mq_vs_transpose,
|
|
[RAB_OPERAND_r4000allegrex_cop2cs] = RabbitizerOperandType_process_r4000allegrex_cop2cs,
|
|
[RAB_OPERAND_r4000allegrex_cop2cd] = RabbitizerOperandType_process_r4000allegrex_cop2cd,
|
|
[RAB_OPERAND_r4000allegrex_pos] = RabbitizerOperandType_process_r4000allegrex_pos,
|
|
[RAB_OPERAND_r4000allegrex_size] = RabbitizerOperandType_process_r4000allegrex_size,
|
|
[RAB_OPERAND_r4000allegrex_size_plus_pos] = RabbitizerOperandType_process_r4000allegrex_size_plus_pos,
|
|
[RAB_OPERAND_r4000allegrex_imm3] = RabbitizerOperandType_process_r4000allegrex_imm3,
|
|
[RAB_OPERAND_r4000allegrex_offset14_base] = RabbitizerOperandType_process_r4000allegrex_offset14_base,
|
|
[RAB_OPERAND_r4000allegrex_offset14_base_maybe_wb] = RabbitizerOperandType_process_r4000allegrex_offset14_base_maybe_wb,
|
|
[RAB_OPERAND_r4000allegrex_vcmp_cond] = RabbitizerOperandType_process_r4000allegrex_vcmp_cond,
|
|
[RAB_OPERAND_r4000allegrex_vcmp_cond_s_maybe_vs_maybe_vt] = RabbitizerOperandType_process_r4000allegrex_vcmp_cond_s_maybe_vs_maybe_vt,
|
|
[RAB_OPERAND_r4000allegrex_vcmp_cond_p_maybe_vs_maybe_vt] = RabbitizerOperandType_process_r4000allegrex_vcmp_cond_p_maybe_vs_maybe_vt,
|
|
[RAB_OPERAND_r4000allegrex_vcmp_cond_t_maybe_vs_maybe_vt] = RabbitizerOperandType_process_r4000allegrex_vcmp_cond_t_maybe_vs_maybe_vt,
|
|
[RAB_OPERAND_r4000allegrex_vcmp_cond_q_maybe_vs_maybe_vt] = RabbitizerOperandType_process_r4000allegrex_vcmp_cond_q_maybe_vs_maybe_vt,
|
|
[RAB_OPERAND_r4000allegrex_vconstant] = RabbitizerOperandType_process_r4000allegrex_vconstant,
|
|
[RAB_OPERAND_r4000allegrex_power_of_two] = RabbitizerOperandType_process_r4000allegrex_power_of_two,
|
|
[RAB_OPERAND_r4000allegrex_vfpu_cc_bit] = RabbitizerOperandType_process_r4000allegrex_vfpu_cc_bit,
|
|
[RAB_OPERAND_r4000allegrex_bn] = RabbitizerOperandType_process_r4000allegrex_bn,
|
|
[RAB_OPERAND_r4000allegrex_int16] = RabbitizerOperandType_process_r4000allegrex_int16,
|
|
[RAB_OPERAND_r4000allegrex_float16] = RabbitizerOperandType_process_r4000allegrex_float16,
|
|
[RAB_OPERAND_r4000allegrex_p_vrot_code] = RabbitizerOperandType_process_r4000allegrex_p_vrot_code,
|
|
[RAB_OPERAND_r4000allegrex_t_vrot_code] = RabbitizerOperandType_process_r4000allegrex_t_vrot_code,
|
|
[RAB_OPERAND_r4000allegrex_q_vrot_code] = RabbitizerOperandType_process_r4000allegrex_q_vrot_code,
|
|
[RAB_OPERAND_r4000allegrex_rpx] = RabbitizerOperandType_process_r4000allegrex_rpx,
|
|
[RAB_OPERAND_r4000allegrex_rpy] = RabbitizerOperandType_process_r4000allegrex_rpy,
|
|
[RAB_OPERAND_r4000allegrex_rpz] = RabbitizerOperandType_process_r4000allegrex_rpz,
|
|
[RAB_OPERAND_r4000allegrex_rpw] = RabbitizerOperandType_process_r4000allegrex_rpw,
|
|
[RAB_OPERAND_r4000allegrex_wpx] = RabbitizerOperandType_process_r4000allegrex_wpx,
|
|
[RAB_OPERAND_r4000allegrex_wpy] = RabbitizerOperandType_process_r4000allegrex_wpy,
|
|
[RAB_OPERAND_r4000allegrex_wpz] = RabbitizerOperandType_process_r4000allegrex_wpz,
|
|
[RAB_OPERAND_r4000allegrex_wpw] = RabbitizerOperandType_process_r4000allegrex_wpw,
|
|
[RAB_OPERAND_r5900_I] = RabbitizerOperandType_process_r5900_I,
|
|
[RAB_OPERAND_r5900_Q] = RabbitizerOperandType_process_r5900_Q,
|
|
[RAB_OPERAND_r5900_R] = RabbitizerOperandType_process_r5900_R,
|
|
[RAB_OPERAND_r5900_ACC] = RabbitizerOperandType_process_r5900_ACC,
|
|
[RAB_OPERAND_r5900_ACCxyzw] = RabbitizerOperandType_process_r5900_ACCxyzw,
|
|
[RAB_OPERAND_r5900_vfs] = RabbitizerOperandType_process_r5900_vfs,
|
|
[RAB_OPERAND_r5900_vft] = RabbitizerOperandType_process_r5900_vft,
|
|
[RAB_OPERAND_r5900_vfd] = RabbitizerOperandType_process_r5900_vfd,
|
|
[RAB_OPERAND_r5900_vfsxyzw] = RabbitizerOperandType_process_r5900_vfsxyzw,
|
|
[RAB_OPERAND_r5900_vftxyzw] = RabbitizerOperandType_process_r5900_vftxyzw,
|
|
[RAB_OPERAND_r5900_vfdxyzw] = RabbitizerOperandType_process_r5900_vfdxyzw,
|
|
[RAB_OPERAND_r5900_vfsn] = RabbitizerOperandType_process_r5900_vfsn,
|
|
[RAB_OPERAND_r5900_vftn] = RabbitizerOperandType_process_r5900_vftn,
|
|
[RAB_OPERAND_r5900_vfdn] = RabbitizerOperandType_process_r5900_vfdn,
|
|
[RAB_OPERAND_r5900_vfsl] = RabbitizerOperandType_process_r5900_vfsl,
|
|
[RAB_OPERAND_r5900_vftl] = RabbitizerOperandType_process_r5900_vftl,
|
|
[RAB_OPERAND_r5900_vfdl] = RabbitizerOperandType_process_r5900_vfdl,
|
|
[RAB_OPERAND_r5900_vfsm] = RabbitizerOperandType_process_r5900_vfsm,
|
|
[RAB_OPERAND_r5900_vftm] = RabbitizerOperandType_process_r5900_vftm,
|
|
[RAB_OPERAND_r5900_vfdm] = RabbitizerOperandType_process_r5900_vfdm,
|
|
[RAB_OPERAND_r5900_vis] = RabbitizerOperandType_process_r5900_vis,
|
|
[RAB_OPERAND_r5900_vit] = RabbitizerOperandType_process_r5900_vit,
|
|
[RAB_OPERAND_r5900_vid] = RabbitizerOperandType_process_r5900_vid,
|
|
[RAB_OPERAND_r5900_vis_predecr] = RabbitizerOperandType_process_r5900_vis_predecr,
|
|
[RAB_OPERAND_r5900_vit_predecr] = RabbitizerOperandType_process_r5900_vit_predecr,
|
|
[RAB_OPERAND_r5900_vid_predecr] = RabbitizerOperandType_process_r5900_vid_predecr,
|
|
[RAB_OPERAND_r5900_vis_postincr] = RabbitizerOperandType_process_r5900_vis_postincr,
|
|
[RAB_OPERAND_r5900_vit_postincr] = RabbitizerOperandType_process_r5900_vit_postincr,
|
|
[RAB_OPERAND_r5900_vid_postincr] = RabbitizerOperandType_process_r5900_vid_postincr,
|
|
[RAB_OPERAND_r5900_immediate5] = RabbitizerOperandType_process_r5900_immediate5,
|
|
[RAB_OPERAND_r5900_immediate15] = RabbitizerOperandType_process_r5900_immediate15,
|
|
};
|
|
|
|
#endif
|