// RUN: mlir-opt %s -vector-bufferize -split-input-file -verify-diagnostics // | FileCheck %s // CHECK-LABEL: func @mask( func.func @mask(%t0: tensor, %val: vector<16xf32>, %idx: index, %m0: vector<16xi1>) -> tensor { // expected-error @+1 {{'vector.mask' op body must bufferize in-place}} %0 = vector.mask %m0 { vector.transfer_write %val, %t0[%idx] : vector<16xf32>, tensor } : vector<16xi1> -> tensor return %0 : tensor }