brintos

brintos / llvm-project-archived public Read only

0
0
Text · 581 B · 88da18f Raw
16 lines · plain
1// RUN: mlir-opt -allow-unregistered-dialect -split-input-file -test-pattern-selective-replacement -verify-diagnostics %s | FileCheck %s2 3// Test that operations can be selectively replaced.4 5// CHECK-LABEL: @test16// CHECK-SAME: %[[ARG0:.*]]: i32, %[[ARG1:.*]]: i327func.func @test1(%arg0: i32, %arg1 : i32) -> () {8  // CHECK: arith.addi %[[ARG1]], %[[ARG1]]9  // CHECK-NEXT: "test.return"(%[[ARG0]]10  %cast = "test.cast"(%arg0, %arg1) : (i32, i32) -> (i32)11  %non_terminator = arith.addi %cast, %cast : i3212  "test.return"(%cast, %non_terminator) : (i32, i32) -> ()13}14 15// -----16