Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RTGTest] Add the last remaining ops for RV32I #8142

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

maerhart
Copy link
Member

No description provided.

@maerhart maerhart added the RTG Involving the `rtg` dialect label Jan 29, 2025
@maerhart maerhart requested review from youngar and darthscsi January 29, 2025 15:23
@maerhart maerhart force-pushed the maerhart-rtgtest-integer-register-api branch from 0ff91bf to 1a8407a Compare January 31, 2025 20:30
@maerhart maerhart force-pushed the maerhart-rtgtest-last-operations branch from 1f4427a to 32c1c81 Compare January 31, 2025 20:34
Copy link
Contributor

@fabianschuiki fabianschuiki left a comment

Choose a reason for hiding this comment

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

LGTM

include/circt/Dialect/RTGTest/IR/RTGTestAttributes.td Outdated Show resolved Hide resolved
Comment on lines +391 to +394
.concat(llvm::APInt(5, rs.getClassIndex()))
.concat(llvm::APInt(3, }] # funct3 # [{))
.concat(llvm::APInt(5, rd.getClassIndex()))
.concat(llvm::APInt(7, }] # opcode7 # [{));
Copy link
Contributor

Choose a reason for hiding this comment

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

This might be easier to read with a TableGen subst call around the code snippet substituting something like $funct3. But then again, this is pretty clean, and there are only two values to be interpolated. The substitution might make it harder to read.

Copy link
Member Author

Choose a reason for hiding this comment

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

Doing !subst("$funct3", funct3, "...") leads to a cryptic tablegen error saying that the initializer could not be resolved. Maybe because funct3 is an integer and not a string? Working around all of that might make it more complicated.

include/circt/Dialect/RTGTest/IR/RTGTestTypes.td Outdated Show resolved Hide resolved
Base automatically changed from maerhart-rtgtest-integer-register-api to main February 3, 2025 07:59
@maerhart maerhart force-pushed the maerhart-rtgtest-last-operations branch from 32c1c81 to 060aa5f Compare February 3, 2025 08:14
@maerhart maerhart merged commit 5aa1cc3 into main Feb 3, 2025
5 checks passed
@maerhart maerhart deleted the maerhart-rtgtest-last-operations branch February 3, 2025 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RTG Involving the `rtg` dialect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants