[llvm] [X86] Fix swapped VPTERNLOG231_imm8/VPTERNLOG312_imm8 SDNodeXForm bodies (PR #209782)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 15 21:56:28 PDT 2026


================
@@ -11784,7 +11784,20 @@ def VPTERNLOG132_imm8 : SDNodeXForm<timm, [{
   return getI8Imm(NewImm, SDLoc(N));
 }]>;
 def VPTERNLOG231_imm8 : SDNodeXForm<timm, [{
-  // Convert a VPTERNLOG immediate by moving operand 1 to the end.
+  // Convert a VPTERNLOG immediate by moving operand 1 to the beginning.
----------------
topperc wrote:

This one should be operand 2 to the beginning.

https://github.com/llvm/llvm-project/pull/209782


More information about the llvm-commits mailing list