Skip to content

Conversation

@KavyaChopra04
Copy link
Contributor

@KavyaChopra04 KavyaChopra04 commented Dec 23, 2025

Resolved failed legalization of arith.fptosi and arith.fptoui. Inadvertently, arith.cmpf also got legalized (because we didn't have an Arith -> Comb lowering for it just yet)
sv-tests errors.txt diff:

>      15 error: 'hw.constant' op requires attribute 'value'
54d54
<       7 error: 'hw.constant' op requires attribute 'value'
75d74
<       4 error: failed to legalize operation 'arith.fptosi' that was explicitly marked illegal
132d130
<       2 error: failed to legalize operation 'arith.cmpf' that was explicitly marked illegal
251,252d248
<       1 error: failed to legalize operation 'arith.uitofp' that was explicitly marked illegal
<       1 error: failed to legalize operation 'arith.sitofp' that was explicitly marked illegal

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!

Copy link
Member

@maerhart maerhart left a comment

Choose a reason for hiding this comment

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

LGTM

@KavyaChopra04
Copy link
Contributor Author

Thank you @fabianschuiki and @maerhart . I addressed all comments. This PR is now ready-to-go. Can anyone merge it for me?

@fabianschuiki fabianschuiki merged commit 4e17b05 into llvm:main Jan 2, 2026
7 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.

3 participants