File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
llvm/test/CodeGen/SPIRV/extensions/SPV_KHR_bfloat16 Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 1+ ; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown --spirv-ext=+SPV_KHR_bfloat16 %s -o - | FileCheck %s
2+ ; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown --spirv-ext=+SPV_KHR_bfloat16 %s -o - -filetype=obj | spirv-val %}
3+ ; XFAIL: *
4+ ; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-ERROR
5+
6+ ; CHECK-ERROR: BFloat16TypeKHR requires the following SPIR-V extension: SPV_KHR_subgroup_rotate
7+
8+ ; CHECK-DAG: OpCapability BFloat16TypeKHR
9+ ; CHECK-DAG: OpExtension "SPV_KHR_bfloat16"
10+ ; CHECK: %[[#BFLOAT:]] = OpTypeFloat 16 0
11+ ; CHECK: %[[#]] = OpTypeVector %[[#BFLOAT]] 2
12+
13+ define spir_kernel void @test () {
14+ entry:
15+ ret void
16+ }
You can’t perform that action at this time.
0 commit comments