Skip to content

armsve: fix missing clobbers and core state flags - #974

Merged
devinamatthews merged 1 commit into
flame:masterfrom
SiPearl:mqho/armsve_bug
Dec 3, 2026
Merged

devinamatthews merged 1 commit into
flame:masterfrom
SiPearl:mqho/armsve_bug

Conversation

@hominhquan

Copy link
Copy Markdown
Contributor
  • Several missing flags in unindexed armsve kernels:
    • p0 and p1 were used but were not declared in clobbers
    • some instructions modifying the condition flag (cmp, subs, fcmp) but 'cc' was missing
    • memory load/store was not declared with 'memory' either
  • This commit makes them robust and fixes the testsuite segfault on GCC >= 15.0 in -O2 and -O3.
  • Note that the testsuite passed on LLVM-22 without this patch, probably thanks to luck and less-agressive LLVM passes.

Signed-off-by: Minh Quan Ho [email protected]
Co-authored by Claude Opus 5.5

- Several missing flags in unindexed armsve kernels:
   - p0 and p1 were used but were not declared in clobbers
   - some instructions modifying the condition flag (cmp, subs, fcmp)
     but 'cc' was missing
   - memory load/store was not declared with 'memory' either
- This commit makes them robust and fixes the testsuite segfault on
  GCC >= 15.0 in -O2 and -O3.
- Note that the testsuite passed on LLVM-22 without this patch,
  probably thanks to luck and less-agressive LLVM passes.

Signed-off-by: Minh Quan Ho <[email protected]>
Co-authored by Claude Opus 5.5
@devinamatthews

Copy link
Copy Markdown
Member

Great, love a quick fix!

@devinamatthews
devinamatthews merged commit da00332 into flame:master Dec 3, 2026
17 checks passed
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.

2 participants