Skip to content

Commit 23a0570

Browse files
add the test file
1 parent e7eeecb commit 23a0570

File tree

1 file changed

+16
-0
lines changed
  • llvm/test/CodeGen/SPIRV/extensions/SPV_KHR_bfloat16

1 file changed

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

0 commit comments

Comments
 (0)