dsp clean fault#3
Merged
Merged
Conversation
t32_misc_reverse keyed only on op2 (hw2[7:4]), ignoring op1 (hw1[7:4]). Its case-0x8 REV.W path accepted any op1, so ARMv7E-M DSP encodings (SXTAH/UXTAH/SXTB16/UXTB16/QADD/QSUB/QDADD/QDSUB/SEL) — UndefinedInstruction on Cortex-M3 — silently executed as reverse ops. Add an op1 gate: CLZ is op1==0xB & op2==8; the REV/REV16/RBIT/REVSH family is op1==0x9. Verified authoritative via -mcpu=cortex-m4 objdump (the M3 assembler rejects these instructions). Add V7emDspInstructionsCleanFault regression covering all 18 §4 DSP encodings. ctest 272/272 green, no regression.
…g sweep (T4) Add test_cortex_m3_loadstore.cpp: LDRD/STRD across the P/U/W/L matrix (imm offset / pre / post / negative) and single load/store .W imm8 modes (op B/9/F/D = post+/post-/pre+/pre-), asserting concrete values and writeback rather than round-trip. Add shifted-reg flag sweep to test_cortex_m3_advanced: ADD carry/overflow, SUB borrow, ROR operand — the arithmetic flag path after a shifter operand (T1a's shifter-carry→C fix), read via MRS APSR. Pure test additions, zero src change. ctest 286/286.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.