|
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 | +; RUN: not llvm-spirv %t.bc -spirv-text --spirv-max-version=1.5 -o %t.txt 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR |
| 3 | +; RUN: llvm-spirv %t.bc -spirv-text --spirv-max-version=1.5 --spirv-ext=+SPV_KHR_integer_dot_product -o %t.txt |
| 4 | +; RUN: FileCheck < %t.txt %s --check-prefixes=CHECK-SPIRV,CHECK-SPIRV-EXT |
| 5 | +; RUN: llvm-spirv --spirv-max-version=1.5 --spirv-ext=+SPV_KHR_integer_dot_product %t.bc -o %t.spv |
| 6 | +; RUN: llvm-spirv -r %t.spv -o %t.rev.bc |
| 7 | +; RUN: llvm-dis < %t.rev.bc | FileCheck %s --check-prefix=CHECK-LLVM |
| 8 | + |
3 | 9 | ; RUN: llvm-spirv %t.bc -spirv-text --spirv-ext=+SPV_KHR_integer_dot_product -o %t.txt
|
4 |
| -; RUN: FileCheck < %t.txt %s --check-prefix=CHECK-SPIRV |
| 10 | +; RUN: FileCheck < %t.txt %s --check-prefixes=CHECK-SPIRV,CHECK-SPIRV-NOEXT |
5 | 11 | ; RUN: llvm-spirv --spirv-ext=+SPV_KHR_integer_dot_product %t.bc -o %t.spv
|
6 | 12 | ; RUN: llvm-spirv -r %t.spv -o %t.rev.bc
|
7 | 13 | ; RUN: llvm-dis < %t.rev.bc | FileCheck %s --check-prefix=CHECK-LLVM
|
|
12 | 18 | ; CHECK-ERROR: Feature requires the following SPIR-V extension:
|
13 | 19 | ; CHECK-ERROR-NEXT: SPV_KHR_integer_dot_product
|
14 | 20 |
|
15 |
| -; CHECK-SPIRV: Capability DotProductInputAllKHR |
16 |
| -; CHECK-SPIRV: Capability DotProductInput4x8BitKHR |
17 |
| -; CHECK-SPIRV: Capability DotProductInput4x8BitPackedKHR |
18 |
| -; CHECK-SPIRV: Capability DotProductKHR |
19 |
| -; CHECK-SPIRV: Extension "SPV_KHR_integer_dot_product" |
| 21 | +; Check SPIR-V versions in a format magic number + version |
| 22 | +; CHECK-SPIRV-EXT: 119734787 65536 |
| 23 | +; CHECK-SPIRV-NOEXT: 119734787 67072 |
| 24 | + |
| 25 | +; CHECK-SPIRV: Int8 |
| 26 | +; CHECK-SPIRV-DAG: Capability DotProductInput4x8BitKHR |
| 27 | +; CHECK-SPIRV-DAG: Capability DotProductInputAllKHR |
| 28 | +; CHECK-SPIRV-DAG: Capability DotProductInput4x8BitPackedKHR |
| 29 | +; CHECK-SPIRV-DAG: Capability DotProductKHR |
| 30 | +; CHECK-SPIRV-EXT: Extension "SPV_KHR_integer_dot_product" |
| 31 | +; CHECK-SPIRV-NOEXT-NOT: Extension "SPV_KHR_integer_dot_product" |
20 | 32 |
|
21 | 33 | ; CHECK-SPIRV-DAG: TypeInt [[#I8:]] 8
|
22 | 34 | ; CHECK-SPIRV-DAG: TypeInt [[#I16:]] 16
|
|
0 commit comments