16 lines · plain
1// RUN: mlir-translate -no-implicit-module -test-spirv-roundtrip %s | FileCheck %s2 3// RUN: %if spirv-tools %{ rm -rf %t %}4// RUN: %if spirv-tools %{ mkdir %t %}5// RUN: %if spirv-tools %{ mlir-translate --no-implicit-module --serialize-spirv --split-input-file --spirv-save-validation-files-with-prefix=%t/module %s %}6// RUN: %if spirv-tools %{ spirv-val %t %}7 8spirv.module Logical OpenCL requires #spirv.vce<v1.0, [Kernel], []> {9 spirv.func @foo() -> () "None" {10 spirv.Return11 }12 spirv.EntryPoint "Kernel" @foo13 // CHECK: spirv.ExecutionMode @foo "LocalSizeHint", 3, 4, 514 spirv.ExecutionMode @foo "LocalSizeHint", 3, 4, 515}16