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

Extend IREmitter::INotEqual to handle U64s #1824

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mikusp
Copy link
Contributor

@mikusp mikusp commented Dec 18, 2024

No description provided.

switch (lhs.Type()) {
case Type::U32:
case Type::U64:
return Inst<U1>(Opcode::INotEqual, lhs, rhs);
Copy link
Collaborator

Choose a reason for hiding this comment

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

INotEqual is defined as having U32 inputs

OPCODE(INotEqual, U1, U32, U32, )

I suspect if you compile in debug mode it will assert on mismatched types if passed U64

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm pretty sure it didn't assert there in debug 🤔

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