Commit Graph

35 Commits

Author SHA1 Message Date
angie
02302f29b6 Fix some instructions missing their corresponding AccessType 2024-10-13 11:54:05 -03:00
angie
f28fba1cc5 version bump 2024-07-16 21:15:37 -04:00
Angie
fc2e1098ec Fix vilwr and viswr 2024-07-15 20:28:41 -04:00
Angie
ef2598d2c7 Fix pmfhl and pmthl missing the .fmt specifier 2024-07-15 16:05:53 -04:00
Angie
2c5e2cfc26 Implement rfe 2024-07-13 17:30:13 -04:00
Anghelo Carvajal
b51b62da45
ALLEGREX support (#60)
* 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
2024-04-22 13:15:58 -04:00
angie
901a3e5f86 format 2024-04-11 12:08:41 -04:00
angie
4f1d6c6f9f further tests cleanups 2024-04-11 11:24:49 -04:00
angie
16ab51f871 further test cleanup 2024-04-11 10:50:31 -04:00
angie
ef9c548249 modularize test files 2024-04-11 10:27:57 -04:00
angie
f5d811f18e Avoid heap-allocating memory for calculating required buffer size on RabbitizerOperandType_getBufferSize 2024-04-03 12:41:26 -03:00
angie
5f4ff4d2e5 Consider r5900's paddub as a possible move instruction 2024-03-25 20:54:06 -03:00
angie
d58534fb67 Update tests 2024-02-18 11:35:05 -03:00
angie
a1c4864336 sub and negu tests 2024-02-18 11:32:46 -03:00
angie
728815fba3 Update copyright years 2024-01-28 12:16:11 -03:00
angie
9a98ff93ee Properly implement r5900's vcallms operand
Closes #42
2023-09-13 10:45:11 -03:00
Angie
c4e7996125 move gte macros files to docs folder 2023-06-11 10:32:27 -04:00
Angie
9a3e84a131 update gte macros to be usable 2023-06-11 10:16:08 -04:00
angie
3bc66eb98d Update tests 2023-05-04 14:00:56 -04:00
Angie
cd98ae0e0f Update copyright year in every file 2023-05-02 16:41:02 -04:00
Anghelo Carvajal
8237818ff9
Add R3000GTE instruction set support (#31)
* initial gte setup

* starting to parse gte instructions

* R3000_GTE -> R3000GTE

* decode all the non-operand instructions

* remove printfs, whoops

* decode gte with operands

* cleanups

* bindings stuffs

* RabbitizerInstrId_isValid

* fix missing include
2023-04-29 23:07:07 -04:00
angie
ef43c1eb77 cleanup implementation of gnuMode 2023-04-16 10:35:47 -04:00
angie
bb23e65556 Add test for trunc on r5900 2023-04-16 10:24:08 -04:00
angie
8a805123d4 Implement workaround for R5900's trunc.w.s issue 2023-04-16 10:05:01 -04:00
Angie
6a11224f2f Unit test for checking the version number matches 2023-02-23 13:50:05 -03:00
angie
1bd65e61a4 docs: usage c api: Overriding the immediate 2022-12-24 13:41:47 -03:00
angie
156cd5935d plain_disassmbly test 2022-12-24 12:21:31 -03:00
angie
5063702a07 modifiesF* and readsF 2022-12-20 00:42:27 -03:00
angie
ef2acdb328 Remove jalr_rd hack 2022-12-19 15:04:59 -03:00
Angie
481bb2f6a5 jalr instruction check 2022-12-19 12:20:32 -03:00
angie
12537e6706 pre-geneate table system 2022-12-16 14:36:53 -03:00
angie
363aff8e5d Fix descriptor logic errors 2022-12-15 16:55:31 -03:00
angie
32acccf873 Try to make logic check tests 2022-12-15 16:06:48 -03:00
angie
cb8af37b43 move tests to tests folder 2022-10-12 11:26:28 -03:00
Anghelo Carvajal
acee144578
C++ bindings (#9)
* start making c++ bindings

* Add sanity checks

* add descriptor methods

* setup making c++ library

* cpp test

* format (not tidy because it breaks everything and the result looks dumb)

* Fixes

* add missing alias

* move stuff to their own files

* InstructionRsp bindings

* r5900 bindings

* almost there

* binding for analysis stuff

* setters
2022-10-09 17:51:47 -03:00