Skip to content

MIPS: Support isLegalICmpImmediate and isLegalAddImmediate #133400

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

Merged
merged 1 commit into from
Mar 28, 2025

Conversation

wzssyqa
Copy link
Contributor

@wzssyqa wzssyqa commented Mar 28, 2025

Set it to true only if isInt<16>.
By default implemention defines them to true always. For most cases, MIPS uses 16bit IMM, and for microMIPS, ICMP and ADDiu have 16bit IMM flavors.

Set it to true only if isInt<16>.
By default implemention defines them to true always.
For most cases, MIPS uses 16bit IMM, and for microMIPS,
ICMP and ADDiu have 16bit IMM flavor.
@wzssyqa wzssyqa merged commit 2218587 into llvm:main Mar 28, 2025
12 checks passed
@efriedma-quic
Copy link
Collaborator

Testcase? I'd expect that implementing these functions has some effect on generated code, even if you're not explicitly using them in the MIPS backend.

@wzssyqa
Copy link
Contributor Author

wzssyqa commented Mar 31, 2025

Testcase? I'd expect that implementing these functions has some effect on generated code, even if you're not explicitly using them in the MIPS backend.

I agree, and I think that it is due to that we have a test case can cover it.

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