[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git] / llvm / test / CodeGen / SPIRV / empty-module.ll
blobb7cea042ee5ddc9aec737754c93386ec8396ca83
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