• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: %clang_cc1 %s -triple "spir-unknown-unknown" -emit-llvm -o - | FileCheck %s --check-prefix=CL10
2// RUN: %clang_cc1 %s -triple "spir-unknown-unknown" -emit-llvm -o - -cl-std=CL1.2 | FileCheck %s --check-prefix=CL12
3// RUN: %clang_cc1 %s -triple "spir-unknown-unknown" -emit-llvm -o - -cl-std=CL2.0 | FileCheck %s --check-prefix=CL20
4// RUN: %clang_cc1 %s -triple "spir64-unknown-unknown" -emit-llvm -o - | FileCheck %s --check-prefix=CL10
5// RUN: %clang_cc1 %s -triple "spir64-unknown-unknown" -emit-llvm -o - -cl-std=CL1.2 | FileCheck %s --check-prefix=CL12
6// RUN: %clang_cc1 %s -triple "spir64-unknown-unknown" -emit-llvm -o - -cl-std=CL2.0 | FileCheck %s --check-prefix=CL20
7kernel void foo() {}
8// CL10: !opencl.spir.version = !{[[SPIR:![0-9]+]]}
9// CL10: !opencl.ocl.version = !{[[OCL:![0-9]+]]}
10// CL10: [[SPIR]] = !{i32 2, i32 0}
11// CL10: [[OCL]] = !{i32 1, i32 0}
12// CL12: !opencl.spir.version = !{[[SPIR:![0-9]+]]}
13// CL12: !opencl.ocl.version = !{[[OCL:![0-9]+]]}
14// CL12: [[SPIR]] = !{i32 2, i32 0}
15// CL12: [[OCL]] = !{i32 1, i32 2}
16// CL20: !opencl.spir.version = !{[[SPIR:![0-9]+]]}
17// CL20: !opencl.ocl.version = !{[[SPIR:![0-9]+]]}
18// CL20: [[SPIR]] = !{i32 2, i32 0}
19