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

[RISCV] Implement XCValu Intrinsics #70

Merged
merged 1 commit into from
Aug 18, 2023

Conversation

realqhc
Copy link
Contributor

@realqhc realqhc commented Jul 20, 2023

@realqhc realqhc changed the title [RISCV] Implement Alu Intrinsics [RISCV] Implement XCValu Intrinsics Jul 20, 2023
}
const MCInstrDesc &Desc = TII->get(Opcode);
BuildMI(MBB, MBBI, DL, Desc, DstReg).
addReg(I).
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably .addReg(I) instead of addReg(I).?

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed

@lewis-revill
Copy link
Contributor

Looks good, should remember when we come to implement the Clang side of this that it would be nice to have Clang do verification on clip/clipu to check that the argument is valid (power of two minus 1). That way we would get a nice frontend error rather than a backend error.

@simonpcook
Copy link
Contributor

Could someone with write access merge this, I think a bug should be opened with Lewis' comment afterwards as a reminder for however this is used in Clang (possibly part of #74 discussion?)

@jeremybennett jeremybennett merged commit 91ca1a9 into openhwgroup:development Aug 18, 2023
2 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.

5 participants