// RUN: mlir-translate -split-input-file -test-spirv-roundtrip %s | FileCheck %s spv.module "Logical" "GLSL450" { func @array_stride(%arg0 : !spv.ptr [128]>, StorageBuffer>, %arg1 : i32, %arg2 : i32) { // CHECK: {{%.*}} = spv.AccessChain {{%.*}}[{{%.*}}, {{%.*}}] : !spv.ptr [128]>, StorageBuffer> %2 = spv.AccessChain %arg0[%arg1, %arg2] : !spv.ptr [128]>, StorageBuffer> spv.Return } } // ----- spv.module "Logical" "GLSL450" { // CHECK: spv.globalVariable {{@.*}} : !spv.ptr, StorageBuffer> spv.globalVariable @var0 : !spv.ptr, StorageBuffer> // CHECK: spv.globalVariable {{@.*}} : !spv.ptr>, Input> spv.globalVariable @var1 : !spv.ptr>, Input> }