Skip to content

Commit a90908a

Browse files
add the test for SPIR-V QuantizeToF16 operation and mark it as xfail
1 parent ae9c07a commit a90908a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)