Debian Codegraph @

llvm-project/llvm/projects/llvm-spirv/test/spirv-triple-with-version.ll

raw
1 ; RUN: llvm-as %s -o %t.bc
2
3 ; RUN: not llvm-spirv %t.bc -spirv-max-version=1.0 -o - -spirv-text 2>&1 | FileCheck %s --check-prefix=CHECK-INVALID
4 ; RUN: not llvm-spirv %t.bc -spirv-max-version=1.1 -o - -spirv-text 2>&1 | FileCheck %s --check-prefix=CHECK-INVALID
5
6 ; RUN: llvm-spirv %t.bc -o - -spirv-text | FileCheck %s --check-prefix=CHECK12
7 ; RUN: llvm-spirv %t.bc -spirv-max-version=1.2 -o - -spirv-text | FileCheck %s --check-prefix=CHECK12
8 ; RUN: llvm-spirv %t.bc -spirv-max-version=1.3 -o - -spirv-text | FileCheck %s --check-prefix=CHECK12
9 ; RUN: llvm-spirv %t.bc -spirv-max-version=1.4 -o - -spirv-text | FileCheck %s --check-prefix=CHECK12
10
11 target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024"
12 target triple = "spirv64v1.2-unknown-unknown"
13
14 ; This is a module with a SPIR-V subarch. Ensure that the SPIR-V version specified as the subarch is taken into account by llvm-spirv.
15
16 ; CHECK-INVALID: TripleMaxVersionIncompatible: Triple version and maximum version are incompatible.
17
18 ; 66048 = 0x10200, i.e. version 1.2
19 ; CHECK12: 119734787 66048