We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae9c07a commit a90908aCopy full SHA for a90908a
llvm/test/CodeGen/SPIRV/instructions/quantizeto16.ll
@@ -0,0 +1,15 @@
1
+; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv-unknown-vulkan-compute %s -o - | FileCheck %s
2
+; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-vulkan-compute %s -o - -filetype=obj | spirv-val %}
3
+
4
+; TODO: Implement support for the SPIR-V QuantizeToF16 operation
5
+; XFAIL: *
6
7
+; CHECK-DAG: [[F32:%.*]] = OpTypeFloat 32
8
+; CHECK: %[[#]] = OpQuantizeToF16 [[F32]] %[[#]]
9
+define spir_func void @test_wrappers() {
10
+ entry:
11
+ %r8 = call spir_func float @__spirv_QuantizeToF16(float 0.000000e+00)
12
+ ret void
13
+}
14
15
+declare dso_local spir_func float @__spirv_QuantizeToF16(float)
0 commit comments