File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
llvm-spirv/test/transcoding Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1
1
; RUN: llvm-as %s -o %t.bc
2
+ ; RUN: not llvm-spirv %t.bc -spirv-text -o %t.txt 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR
2
3
; RUN: llvm-spirv %t.bc -spirv-text --spirv-ext=+SPV_KHR_integer_dot_product -o %t.txt
3
4
; RUN: FileCheck < %t.txt %s --check-prefix=CHECK-SPIRV
4
5
; RUN: llvm-spirv --spirv-ext=+SPV_KHR_integer_dot_product %t.bc -o %t.spv
5
6
; RUN: llvm-spirv -r %t.spv -o %t.rev.bc
6
7
; RUN: llvm-dis < %t.rev.bc | FileCheck %s --check-prefix=CHECK-LLVM
7
8
9
+ ; CHECK-ERROR: Feature requires the following SPIR-V extension:
10
+ ; CHECK-ERROR-NEXT: SPV_KHR_integer_dot_product
11
+
8
12
; CHECK-SPIRV: Capability DotProductInputAllKHR
9
13
; CHECK-SPIRV: Capability DotProductInput4x8BitKHR
10
14
; CHECK-SPIRV: Capability DotProductInput4x8BitPackedKHR
Original file line number Diff line number Diff line change 1
1
; RUN: llvm-as %s -o %t.bc
2
+ ; RUN: not llvm-spirv %t.bc -spirv-text -o %t.txt 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR
2
3
; RUN: llvm-spirv %t.bc -spirv-text --spirv-ext=+SPV_KHR_integer_dot_product -o %t.txt
3
4
; RUN: FileCheck < %t.txt %s --check-prefix=CHECK-SPIRV
4
5
; RUN: llvm-spirv --spirv-ext=+SPV_KHR_integer_dot_product %t.bc -o %t.spv
5
6
; RUN: llvm-spirv -r %t.spv -o %t.rev.bc
6
7
; RUN: llvm-dis < %t.rev.bc | FileCheck %s --check-prefix=CHECK-LLVM
7
8
9
+ ; CHECK-ERROR: Feature requires the following SPIR-V extension:
10
+ ; CHECK-ERROR-NEXT: SPV_KHR_integer_dot_product
11
+
8
12
; CHECK-SPIRV: Capability DotProductInputAllKHR
9
13
; CHECK-SPIRV: Capability DotProductInput4x8BitKHR
10
14
; CHECK-SPIRV: Capability DotProductInput4x8BitPackedKHR
You can’t perform that action at this time.
0 commit comments