Skip to content

[IME] Add sliding-window matrix multiply-accumulate instructions#668

Open
wujing215 wants to merge 4 commits intobuddy-compiler:mainfrom
wujing215:feat/ime-slide
Open

[IME] Add sliding-window matrix multiply-accumulate instructions#668
wujing215 wants to merge 4 commits intobuddy-compiler:mainfrom
wujing215:feat/ime-slide

Conversation

@wujing215
Copy link
Contributor

Summary

This PR adds support for fixed and dynamic sliding-window matrix multiply-accumulate instructions to the IME dialect.

Changes

New Instructions

Fixed Sliding-Window Integer Instructions (12 total)

Slide Signed×Signed Unsigned×Unsigned Signed×Unsigned Unsigned×Signed
1 vmadot1 vmadot1u vmadot1su vmadot1us
2 vmadot2 vmadot2u vmadot2su vmadot2us
3 vmadot3 vmadot3u vmadot3su vmadot3us

Fixed Sliding-Window Floating-Point Instructions (3 total)

  • vfmadot1, vfmadot2, vfmadot3

Dynamic Sliding-Window Instructions (5 total)

  • vmadotn, vmadotnu, vmadotnsu, vmadotnus, vfmadotn

Testing

# Build and test assembly generation
cd examples/IMEDialect
make vmadot1-asm    # Generates: vmadot1 v20, v8, v16
make vmadot2u-asm   # Generates: vmadot2u v20, v8, v16
make vmadot3su-asm  # Generates: vmadot3su v20, v8, v16

@wujing215 wujing215 requested a review from zhanghb97 as a code owner January 16, 2026 01:58
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.

1 participant

Comments