Mercurial > hg > CbC > CbC_llvm
view mlir/test/IR/operand.mlir @ 173:0572611fdcc8 llvm10 llvm12
reorgnization done
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 11:55:54 +0900 |
parents | 1d019706d866 |
children | 2e18cbf3894f |
line wrap: on
line source
// RUN: mlir-opt %s -split-input-file -verify-diagnostics | FileCheck %s //===----------------------------------------------------------------------===// // Test mixed normal and variadic operands //===----------------------------------------------------------------------===// func @correct_variadic_operand(%arg0: tensor<f32>, %arg1: f32) { // CHECK: mixed_normal_variadic_operand "test.mixed_normal_variadic_operand"(%arg0, %arg0, %arg0, %arg0, %arg0) : (tensor<f32>, tensor<f32>, tensor<f32>, tensor<f32>, tensor<f32>) -> () return } // ----- func @error_in_first_variadic_operand(%arg0: tensor<f32>, %arg1: f32) { // expected-error @+1 {{operand #1 must be tensor of any type}} "test.mixed_normal_variadic_operand"(%arg0, %arg1, %arg0, %arg0, %arg0) : (tensor<f32>, f32, tensor<f32>, tensor<f32>, tensor<f32>) -> () return } // ----- func @error_in_normal_operand(%arg0: tensor<f32>, %arg1: f32) { // expected-error @+1 {{operand #2 must be tensor of any type}} "test.mixed_normal_variadic_operand"(%arg0, %arg0, %arg1, %arg0, %arg0) : (tensor<f32>, tensor<f32>, f32, tensor<f32>, tensor<f32>) -> () return } // ----- func @error_in_second_variadic_operand(%arg0: tensor<f32>, %arg1: f32) { // expected-error @+1 {{operand #3 must be tensor of any type}} "test.mixed_normal_variadic_operand"(%arg0, %arg0, %arg0, %arg1, %arg0) : (tensor<f32>, tensor<f32>, tensor<f32>, f32, tensor<f32>) -> () return }