Skip to content

[rocjitsu] 2 small testing improvements after PR #5512 - #5609

Merged
Groverkss merged 1 commit into
developfrom
users/accauble/rj-minor-5512-improvements
May 1, 2026
Merged

Groverkss merged 1 commit into
developfrom
users/accauble/rj-minor-5512-improvements

Conversation

@accauble

Copy link
Copy Markdown
Contributor

Motivation

[rocjitsu] Two small nit picks from PR #5512:

  • Added tests to make sure that if there is a refactor of the cmpx_writes_vcc function (for instance returns false if the instruction writes to scalar SGPR pair instead of VCC) that the refactor doesn't siliently generate the wrong code.
  • Made a minor fix to test_v_cmpx_instructions_cannot_share_execute in test_cross_isa_analyzer.py which was passing the encoding to _can_share_execute. This was changed in PR rocjitsu: Harden ISA layer, virtual machine, and adds initial DBT #5512

JIRA ID

None

Test Result

Tests pass!

Submission Checklist

@accauble
accauble requested a review from atgutier as a code owner April 29, 2026 16:09

@atgutier atgutier left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for these fixes!

Just to confirm @accauble, if I regenerate there won't be any diffs on the auto-generated files with this change?

@accauble

Copy link
Copy Markdown
Contributor Author

Just to confirm @accauble, if I regenerate there won't be any diffs on the auto-generated files with this change?

With only changes to the tests, nope! But I did just quickly verify that. :-P

@accauble
accauble force-pushed the users/accauble/rj-minor-5512-improvements branch 4 times, most recently from 3632810 to b5b1c47 Compare April 30, 2026 20:37
  * Added tests to make sure that if there is a refactor of the
    cmpx_writes_vcc function (for instance returns false if the
    instruction writes to scalar SGPR pair instead of VCC) that
    the refactor doesn't siliently generate the wrong code.
  * Made a minor fix to `test_v_cmpx_instructions_cannot_share_execute`
    in `test_cross_isa_analyzer.py` which was passing the encoding
    to `_can_share_execute`. This was changed in PR #5512
@accauble
accauble force-pushed the users/accauble/rj-minor-5512-improvements branch from b5b1c47 to 7021d7b Compare April 30, 2026 23:27
@Groverkss
Groverkss merged commit 16bee54 into develop May 1, 2026
25 checks passed
@Groverkss
Groverkss deleted the users/accauble/rj-minor-5512-improvements branch May 1, 2026 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants