aboutsummaryrefslogtreecommitdiff
path: root/mlir/test/IR/test-region-branch-op-verifier.mlir
blob: f5fb7fc2b25cb9c6c0ad6b42e9ce8cb915603cd2 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: mlir-opt %s

func.func @test_ops_verify(%arg: i32) -> f32 {
  %0 = "test.constant"() { value = 5.3 : f32 } : () -> f32
  %1 = test.loop_block %arg : (i32) -> f32 {
  ^bb0(%arg1 : i32):
    test.loop_block_term iter %arg exit %0
  }
  return %1 : f32
}