1// RUN: mlir-opt %s -convert-spirv-to-llvm -verify-diagnostics -split-input-file 2 3// expected-error@+1 {{failed to legalize operation 'spirv.func' that was explicitly marked illegal}} 4spirv.func @array_with_unnatural_stride(%arg: !spirv.array<4 x f32, stride=8>) -> () "None" { 5 spirv.Return 6} 7 8// ----- 9 10// expected-error@+1 {{failed to legalize operation 'spirv.func' that was explicitly marked illegal}} 11spirv.func @struct_array_with_unnatural_stride(%arg: !spirv.struct<(!spirv.array<4 x f32, stride=8>)>) -> () "None" { 12 spirv.Return 13} 14 15// ----- 16 17// expected-error@+1 {{failed to legalize operation 'spirv.func' that was explicitly marked illegal}} 18spirv.func @struct_with_unnatural_offset(%arg: !spirv.struct<(i32[0], i32[8])>) -> () "None" { 19 spirv.Return 20} 21 22// ----- 23 24// expected-error@+1 {{failed to legalize operation 'spirv.func' that was explicitly marked illegal}} 25spirv.func @struct_with_decorations(%arg: !spirv.struct<(f32 [RelaxedPrecision])>) -> () "None" { 26 spirv.Return 27} 28