1; RUN: llvm-as < %s | llvm-spirv -spirv-text -o - | FileCheck %s --check-prefix=CHECK-SPIRV
2; RUN: llvm-as < %s | llvm-spirv -o %t.spv
3; RUN: llvm-spirv -r %t.spv -o - | llvm-dis | FileCheck %s --check-prefix=CHECK-LLVM
4
5target datalayout = "e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024"
6target triple = "spir-unknown-unknown"
7
8; CHECK-SPIRV: 7 SpecConstantOp {{[0-9]*}} {{[0-9]*}} 70
9; CHECK-SPIRV: 7 SpecConstantOp {{[0-9]*}} {{[0-9]*}} 70
10; CHECK-LLVM: @k_var = addrspace(1) global [2 x i8 addrspace(1)*] [i8 addrspace(1)* getelementptr inbounds ([2 x i8], [2 x i8] addrspace(1)* @a_var, i32 0, i64 1), i8 addrspace(1)* getelementptr inbounds ([2 x i8], [2 x i8] addrspace(1)* @a_var, i32 0, i32 0)], align 4
11
12@a_var = addrspace(1) global [2 x i8] c"\96\96", align 1
13@k_var = addrspace(1) global [2 x i8 addrspace(1)*] [i8 addrspace(1)* getelementptr inbounds ([2 x i8], [2 x i8] addrspace(1)* @a_var, i32 0, i64 1), i8 addrspace(1)* getelementptr inbounds ([2 x i8], [2 x i8] addrspace(1)* @a_var, i32 0, i32 0)], align 4
14
15!opencl.enable.FP_CONTRACT = !{}
16!opencl.spir.version = !{!0}
17!opencl.ocl.version = !{!0}
18!opencl.used.extensions = !{!1}
19!opencl.used.optional.core.features = !{!1}
20!opencl.compiler.options = !{!1}
21
22!0 = !{i32 1, i32 2}
23!1 = !{}
24