Debian Codegraph @

llvm/test/CodeGen/SPIRV/instructions/quantizeto16.ll

raw
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)