aboutsummaryrefslogtreecommitdiff
path: root/src/armv7
AgeCommit message (Collapse)Author
6 hoursfix issues around unpredictable ldrd and offset printingiximeow
6 hoursfix {s,u}xt{h,b}[16] using an immediate to describe their rotatesiximeow
6 hoursfix mrc/mrc2 use of CRd=15iximeow
2026-08-06cdp/mrc/mcr opc1 is wider than display knowsiximeow
i *think* this is fixing an issue that was introduced in the diff between 0.4.0 and 0.5.0, so it's elided from the changelog..
2026-08-04write condition code *before* .w suffixiximeow
2026-08-04msr confusion like with mrs..iximeow
2026-08-03armv8 thumb-mode hintsiximeow
2026-08-03decode unknown wide hints like any other hintsiximeow
2026-08-02fix swapped rfe{ia,db} and srs{ia,db}iximeow
2026-08-02fix missing decode of `s` bit for wide shift/rotate opsiximeow
2026-08-02thumb ldc/stc encodings missed a bitiximeow
2026-08-02sufficiently advanced SIMD is indistinguishable from coprocessorsiximeow
2026-08-02thumb2 preload improvementsiximeow
2026-08-02thumb SIMD encoding should have returned Incompleteiximeow
2026-08-02pkhbt/pkhtb bitmask confusioniximeow
2026-08-02Test Target, fix bogus MRS destinationsiximeow
2026-08-02thumb mrs/msr first operand was wildly wrongiximeow
2026-07-28temp, armv8-thumbiximeow
2026-07-28thumb2: fix parallel addition/subtraction, (un)signediximeow
2026-07-28thumb: when nonconforming, allow it/cond=1111 like capstoneiximeow
2026-07-28lsl/mov aliasingiximeow
2026-07-28differential testing wipiximeow
2026-07-28fix thumb2 TBH decode: wrong opcode and register-shift operandBrandon Ros
the T1 TBH arm set Opcode::TBB instead of Opcode::TBH, and built the index operand with bit 4 set in the RegShift raw value. bit 4 is the RegReg selector in RegShift::into_shift, so the mandatory 'lsl #1' index scaling decoded as a register shift 'lsl r0' instead. clear bit 4 so it reads back as the RegImm 'lsl #1' the encoding specifies. verified against binutils objdump: df e8 13 f0 is tbh [pc, r3, lsl #1].
2026-07-28fix more thumb2 register data-processing decode bugsBrandon Ros
- register-controlled shifts (lsl/lsr/asr/ror by register) all decoded as lsl: the shift type was read from hw1[6:5] (always 0 for this form) instead of hw0[6:5] - 32-bit uxt*/sxt* extends read the ror amount from the wrong field (hw1[2:1] scaled by 4 instead of hw1[5:4] scaled by 8), so a no-rotation extend came back as ror #4; rotation of 0 is now omitted - sxtab was decoded as sxtah (wrong opcode table entry) all cases verified against binutils objdump
2026-07-28some armv7/thumb arms are basically duplicateiximeow
2026-07-28fix several thumb2 decode bugsBrandon Ros
- 32-bit store encodings with the imm12 bit (bit 23) set were decoded as the register-offset form when imm12 < 64, or as strbt/strht/strt when imm12 was 0xExx. bit 23 set always means the imm12 form. - movw/movt packed imm4 at bit 16 instead of bit 12, producing 20-bit immediates (e.g. 0xf0005 instead of 0xf005) - mvn (immediate) was decoded as mov, dropping the bitwise not - ror (immediate) was decoded as asr all cases verified against binutils objdump
2026-07-28Do not add an 's' when outputing opcodes that always set flagsGrond
2026-07-28Implement the RRX immediate shift typeGrond
2026-02-22support A1 encoding of several coprocessor instructions + SVCrva3
initially was "implement MCR/MRC decoding", but expanded to include the whole coprocessor space for completeness, and then SVC is right there too. Neon instructions in this space are still rejected, as neon support is not really there yet. Co-authored-by: iximeow <me@iximeow.net>
2026-02-22properly display coprocessor higher than 9rva3
2026-02-22rename MCR2/MRC2 to MCR/MRCrva3
they share exactly the same encoding, except the high bits for condition the bool indicates if it's A2 encondings which is unconditional
2025-10-19visitor-oriented fmtiximeow
this makes a decode+format benchmark drop from 75s to 14s... (decode is 5s)
2024-06-25Bump yaxpeax-arch and bitvec, allow use of deprecated yaxpeax-arch traits, ↵novafacing
fix bitvec syntax changes
2024-03-17at least armv7t doesnt panic now, but im very uncertain these are rightiximeow
2022-09-29Fix 32-bit conditional thumb branchesMitchell Johnson
Correct the shift used to select condition bits and correctly compute the branch offset.
2022-09-29Fix negative unconditional 16-bit thumb branchesMitchell Johnson
Sign extension shift had an off-by-one error so the sign bit was not being properly extended.
2022-09-29Fix 32-bit Thumb unconditional branch decodingMitchell Johnson
T4 encodings of unconditional branches were not being interpreted correctly (#6), and 32-bit bl/blx instructions were similarly incorrect. Correct the bits selected for op1 and op2 and handle the slightly-unusual i1/i2 sign bit xor for these instructions.
2022-01-02fix docs that failed to buildiximeow
2021-09-28fix various armv8 and armv8 panics that should be Err.iximeow
in fact the decoder should _never_ panic. included here are tests that cover the entire 32-bit instruction space and ensure that decoding and display do not panic. these tests run uncomfortably slowly (1168s to decode the 4b "instruction" sequences on my desktop), but verify that panics are no longer an issue.
2021-07-06update yaxpeax_arch and bump version to 0.1.00.1.0iximeow
2020-12-06TODONE: adr with add/subtracted offsetiximeow
instead of trying to shoehorn in `adr reg, label` syntax like the manual requests, it's much easier to just describe these as `{add, sub} reg, pc, offset` and potentially rewrite `pc, offset` as an `adr reg, label` if a higher-level tool has that kind of information available.
2020-12-06propagate up invalid thumb immediate expansioniximeow
2020-12-06warning cleanup (test edition)iximeow
add in some simd tests for future neon decoding. these tests are drawn from capstone and may need some subsequent cleanup
2020-12-06support CPS (change processor state) and some warming cleanupiximeow
2020-12-06add ldc/sdc instructions and a slew of 32b thumb2 testsiximeow
2020-12-06support more mul/div variantsiximeow
2020-12-06thumb parallel addition and subtractioniximeow
2020-12-06fill out more missing thumb2 decoderiximeow
2020-12-06fix more incomplete cases, report arm instruction length properlyiximeow
2020-12-06remove "Incomplete" opcode from arm7 non-thumb decoderiximeow