1 ; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
2 ; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
5 ; CHECK-DAG: OpEntryPoint Kernel %[[#ENTRY1:]] "foo1"
6 ; CHECK-DAG: OpEntryPoint Kernel %[[#ENTRY4:]] "foo4"
8 ; CHECK-DAG: OpExecutionMode %[[#ENTRY1]] {{[a-zA-Z]+}}
9 ; CHECK-DAG: OpExecutionMode %[[#ENTRY4]] {{[a-zA-Z]+}}
12 ; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECKN
14 ; CHECKN: OpMemoryModel
15 ; CHECKN-COUNT-2: OpEntryPoint Kernel
16 ; CHECKN-NOT: OpEntryPoint Kernel
17 ; CHECKN-COUNT-2: OpExecutionMode
18 ; CHECKN-NOT: OpExecutionMode
21 define spir_kernel void @foo1() {
31 define dso_local spir_func void @foo3() {
36 define spir_kernel void @foo4() {