Skip to content

test: add misaligned branch regression with RVC disabled - #3424

Open
Srinidhi-Magesh wants to merge 3 commits into
openhwgroup:masterfrom
Srinidhi-Magesh:test/misaligned-branch-1720
Open

test: add misaligned branch regression with RVC disabled#3424
Srinidhi-Magesh wants to merge 3 commits into
openhwgroup:masterfrom
Srinidhi-Magesh:test/misaligned-branch-1720

Conversation

@Srinidhi-Magesh

Copy link
Copy Markdown

Summary

  • Adds a directed regression for issue [TASK] Add a test for misaligned branches #1720.
  • Verifies that a taken branch to a 2-byte-aligned but non-4-byte-aligned target traps when RVC is disabled.
  • Preserves explicit -march and -mabi options for directed tests.

Validation

  • GCC ISA: rv32im_zba_zbb_zbs_zbc_zicsr_zifencei
  • Spike ISA: rv32im_zba_zbb_zbs_zbc_zicsr_zifencei
  • Observed trap_instruction_address_misaligned
  • mcause = 0
  • Spike simulation completed successfully

Address layout

  • main: 0x80003000
  • misaligned_target: 0x8000300a
  • handle_trap: 0x80003010

Closes #1720

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TASK] Add a test for misaligned branches

1 participant