1 ; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefixes=CHECK,CHECK-OCL
2 ; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
4 ; RUN: llc -O0 -mtriple=spirv-unknown-unknown %s -o - | FileCheck %s --check-prefixes=CHECK,CHECK-NOOCL
5 ; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-unknown %s -o - -filetype=obj | spirv-val %}
7 ; CHECK-DAG: OpCapability Linkage
8 ; CHECK-NOOCL-DAG: OpCapability Shader
9 ; CHECK-OCL-DAG: OpCapability Addresses
10 ; CHECK-OCL-DAG: OpCapability Kernel
11 ; CHECK-OCL: %1 = OpExtInstImport "OpenCL.std"
12 ; CHECK-NOOCL: OpMemoryModel Logical GLSL450
13 ; CHECK-OCL: OpMemoryModel Physical64 OpenCL
14 ; CHECK-NOOCL: OpSource Unknown 0
15 ; CHECK-OCL: OpSource OpenCL_CPP 100000