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

gen: fix implicit vector cast in binary operations #4780

Closed

Conversation

liushuyu
Copy link
Contributor

This pull request fixes implicit vector cast in binary operations. Rather than standard integer extension, vector casts require the RHS (right-hand side) to be a vector of matching size. In this patch, a vector splat operation fills the target vector type with the original value across all the lanes/elements.

This should fix #3606.

@liushuyu liushuyu force-pushed the fix-implicit-vector-cast branch from a394911 to 309c8e8 Compare November 12, 2024 22:20
@liushuyu liushuyu marked this pull request as draft November 13, 2024 00:31
@kinke
Copy link
Member

kinke commented Nov 13, 2024

Alternative frontend fix: #4781

@liushuyu
Copy link
Contributor Author

Alternative frontend fix: #4781

Ah I see, then I will close this one.

@liushuyu liushuyu closed this Nov 13, 2024
@liushuyu liushuyu deleted the fix-implicit-vector-cast branch February 21, 2025 02:21
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.

__vector << int produce ICE, should be illegal?
2 participants