[llvm] [SPIR-V] Fix 64-bit integer literal printing (PR #66686)

Nathan Gauër via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 20 00:12:04 PDT 2023


================
@@ -169,7 +169,9 @@ void SPIRVInstPrinter::printInst(const MCInst *MI, uint64_t Address,
         }
         case SPIRV::OpConstantI:
         case SPIRV::OpConstantF:
-          printOpConstantVarOps(MI, NumFixedOps, OS);
+          // The last fixed operand along with any variadic operands that follow
+          // are part of the variable value.
+          printOpConstantVarOps(MI, NumFixedOps - 1, OS);
----------------
Keenuts wrote:

Ahh I see! Makes sense, thanks!

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


More information about the llvm-commits mailing list