Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[RISCV] Implement codegen for XAndesPerf lea instructions#137925

Merged
tclin914 merged 6 commits into
llvm:mainfrom
tclin914:andes-extension-codegen-lea-1
May 12, 2025
Merged

[RISCV] Implement codegen for XAndesPerf lea instructions#137925
tclin914 merged 6 commits into
llvm:mainfrom
tclin914:andes-extension-codegen-lea-1

Conversation

@tclin914

Copy link
Copy Markdown
Contributor

This patch add the patterns for generating XAndesPerf lea instructions.

The operation of LEA family instructions is:

rd = rs1 + rs2 * (the number of bytes)

The variants with *.ze suffix are RV64 only and its operation is:

rd = rs1 + ZE32(rs2[31:0]) * (the number of bytes)

Loading
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.

5 participants