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

Arseniy Obolenskiy via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 8 07:04:07 PDT 2026


================
@@ -0,0 +1,29 @@
+# RUN: llc -O0 -mtriple=spirv32-unknown-unknown -start-after=finalize-isel -verify-machineinstrs %s -o - | FileCheck %s
+
+# Exercises the SPIRVInstPrinter's OpConstantF path for literals wider than
+# 64 bits (e.g. fp128), independent of how the OpConstantF instruction with
+# more than two literal words was produced.
+
+--- |
+  define fp128 @getConstantFP128() {
+    ret fp128 0xL00000000000000004001000000000000
+  }
----------------
aobolensk wrote:

You may peek here: https://github.com/llvm/llvm-project/commit/0e27cc3beed73936d97041d9e22c09d3c93a5690 

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


More information about the llvm-commits mailing list