[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / mlir / test / Target / SPIRV / module.mlir
blob165412485a0889d1d223d0353130337885a1c403
1 // RUN: mlir-translate -no-implicit-module -test-spirv-roundtrip -split-input-file %s | FileCheck %s
3 // CHECK:      spirv.module Logical GLSL450 requires #spirv.vce<v1.0, [Shader], []> {
4 // CHECK-NEXT:   spirv.func @foo() "Inline" {
5 // CHECK-NEXT:     spirv.Return
6 // CHECK-NEXT:   }
7 // CHECK-NEXT: }
9 spirv.module Logical GLSL450 requires #spirv.vce<v1.0, [Shader], []> {
10   spirv.func @foo() -> () "Inline" {
11      spirv.Return
12   }
15 // -----
17 // CHECK: v1.5
18 spirv.module Logical GLSL450 requires #spirv.vce<v1.5, [Shader], []> {
21 // -----
23 // CHECK: [Shader, Float16]
24 spirv.module Logical GLSL450 requires #spirv.vce<v1.0, [Shader, Float16], []> {
27 // -----
29 // CHECK: [SPV_KHR_float_controls, SPV_KHR_subgroup_vote]
30 spirv.module Logical GLSL450 requires #spirv.vce<v1.0, [Shader], [SPV_KHR_float_controls, SPV_KHR_subgroup_vote]> {