Files
clang-p2996/mlir/test/Dialect/SPIRV/IR/misc-ops.mlir
Lei Zhang 2f7ec77e3c [mlir][spirv] NFC: place ops in the proper file for their categories
This commit moves dangling ops in the main ops.td file to the proper
file matching their categories. This makes ops.td as purely including
all category files.

Differential Revision: https://reviews.llvm.org/D94413
2021-01-12 10:19:37 -05:00

30 lines
655 B
MLIR

// RUN: mlir-opt -split-input-file -verify-diagnostics %s | FileCheck %s
//===----------------------------------------------------------------------===//
// spv.undef
//===----------------------------------------------------------------------===//
func @undef() -> () {
// CHECK: %{{.*}} = spv.undef : f32
%0 = spv.undef : f32
// CHECK: %{{.*}} = spv.undef : vector<4xf32>
%1 = spv.undef : vector<4xf32>
spv.Return
}
// -----
func @undef() -> () {
// expected-error @+2{{expected non-function type}}
%0 = spv.undef :
spv.Return
}
// -----
func @undef() -> () {
// expected-error @+2{{expected ':'}}
%0 = spv.undef
spv.Return
}