This patch drops two instances of REQUIRES: shell from MLIR tests. This feature does not mean much given the internal shell is the default for MLIR. It does prevent these tests from running on Windows, but it does not seem like there is anything inherent to these tests preventing them from running on Windows (minus maybe the lack of spirv-tools, which is explicitly required anyways.
46 lines
1.3 KiB
MLIR
46 lines
1.3 KiB
MLIR
// RUN: mlir-translate --no-implicit-module --test-spirv-roundtrip --split-input-file %s | FileCheck %s
|
|
|
|
// RUN: %if spirv-tools %{ rm -rf %t %}
|
|
// RUN: %if spirv-tools %{ mkdir %t %}
|
|
// RUN: %if spirv-tools %{ mlir-translate --no-implicit-module --serialize-spirv --split-input-file --spirv-save-validation-files-with-prefix=%t/module %s %}
|
|
// RUN: %if spirv-tools %{ spirv-val %t %}
|
|
|
|
// CHECK: spirv.module Logical GLSL450 requires #spirv.vce<v1.0, [Shader], []> {
|
|
// CHECK-NEXT: spirv.func @foo() "Inline" {
|
|
// CHECK-NEXT: spirv.Return
|
|
// CHECK-NEXT: }
|
|
// CHECK-NEXT: spirv.EntryPoint "Vertex" @foo
|
|
// CHECK-NEXT: }
|
|
|
|
spirv.module Logical GLSL450 requires #spirv.vce<v1.0, [Shader], []> {
|
|
spirv.func @foo() -> () "Inline" {
|
|
spirv.Return
|
|
}
|
|
spirv.EntryPoint "Vertex" @foo
|
|
}
|
|
|
|
// -----
|
|
|
|
// CHECK: v1.5
|
|
spirv.module Logical GLSL450 requires #spirv.vce<v1.5, [Shader, Linkage], []> {
|
|
}
|
|
|
|
// -----
|
|
|
|
// CHECK: v1.6
|
|
spirv.module Logical GLSL450 requires #spirv.vce<v1.6, [Shader, Linkage], []> {
|
|
}
|
|
|
|
// -----
|
|
|
|
// CHECK: [Shader, Float16, Linkage]
|
|
spirv.module Logical GLSL450 requires #spirv.vce<v1.0, [Shader, Float16, Linkage], []> {
|
|
}
|
|
|
|
// -----
|
|
|
|
// CHECK: [SPV_KHR_float_controls, SPV_KHR_subgroup_vote]
|
|
spirv.module Logical GLSL450 requires #spirv.vce<v1.0, [Shader, Linkage], [SPV_KHR_float_controls, SPV_KHR_subgroup_vote]> {
|
|
}
|
|
|