[llvm] [SPIR-V] Support printing OpConstantF literals wider than 64 bits (PR #208219)

Juan Manuel Martinez CaamaƱo via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 8 06:57:24 PDT 2026


================
@@ -70,6 +71,23 @@ void SPIRVInstPrinter::printOpConstantVarOps(const MCInst *MI,
     return;
   }
 
+  if (MI->getOpcode() == SPIRV::OpConstantF && NumVarOps > 2) {
----------------
jmmartinez wrote:

I think you can just check for `NumVarOps == 4`. Any other case will hit the `assert(TotalBits == 128 && "Unsupported floating-point literal width");` anyways.

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


More information about the llvm-commits mailing list