Skip to content

Conversation

@kwk
Copy link
Contributor

@kwk kwk commented Dec 4, 2025

This was introduced in #169559

This was introduced in llvm#169559
@llvmbot
Copy link
Member

llvmbot commented Dec 4, 2025

@llvm/pr-subscribers-backend-hexagon

Author: Konrad Kleine (kwk)

Changes

This was introduced in #169559


Full diff: https://github.com/llvm/llvm-project/pull/170643.diff

1 Files Affected:

  • (modified) llvm/lib/Target/Hexagon/HexagonGenWideningVecInstr.cpp (+1-1)
diff --git a/llvm/lib/Target/Hexagon/HexagonGenWideningVecInstr.cpp b/llvm/lib/Target/Hexagon/HexagonGenWideningVecInstr.cpp
index 8df22ae6ebb06..f2b7daf5df896 100644
--- a/llvm/lib/Target/Hexagon/HexagonGenWideningVecInstr.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonGenWideningVecInstr.cpp
@@ -349,7 +349,7 @@ Intrinsic::ID HexagonGenWideningVecInstr::getIntrinsic(
     llvm_unreachable("Incorrect input and output operand sizes");
 
   case OP_Mul:
-    assert(ResEltSize = 2 * InEltSize);
+    assert(ResEltSize == 2 * InEltSize);
     // Enter inside 'if' block when one of the operand is constant vector
     if (IsConstScalar) {
       // When inputs are of 8bit type and output is 16bit type, enter 'if' block

Copy link
Contributor

@nikic nikic left a comment

Choose a reason for hiding this comment

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

LGTM

@nikic nikic changed the title Fix assert: = -> == [Hexagon] Fix assert: = -> == Dec 4, 2025
@kwk kwk merged commit 9a64c9f into llvm:main Dec 4, 2025
12 checks passed
@kwk kwk deleted the fix-assert branch December 4, 2025 14:04
kcloudy0717 pushed a commit to kcloudy0717/llvm-project that referenced this pull request Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants