Skip to content

[mlir] Cast bytes before cmp and some bitwise operations#57

Merged
vladimirradosavljevic merged 1 commit intomainfrom
mlir_cast_bytes_before_cmp
Feb 27, 2026
Merged

[mlir] Cast bytes before cmp and some bitwise operations#57
vladimirradosavljevic merged 1 commit intomainfrom
mlir_cast_bytes_before_cmp

Conversation

@vladimirradosavljevic
Copy link
Contributor

sol.cmp expects integer operands, so if inputs are bytes, we need to cast them to integers before the comparison.

solx-llvm PR.

sol.cmp expects integer operands, so if inputs are bytes,
we need to cast them to integers before the comparison.

Signed-off-by: Vladimir Radosavljevic <vr@matterlabs.dev>
Copy link
Contributor

@PavelKopyl PavelKopyl left a comment

Choose a reason for hiding this comment

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

LGTM.

@vladimirradosavljevic vladimirradosavljevic merged commit d11c985 into main Feb 27, 2026
2 checks passed
@vladimirradosavljevic vladimirradosavljevic deleted the mlir_cast_bytes_before_cmp branch February 27, 2026 14:15
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