brintos

brintos / llvm-project-archived public Read only

0
0
Text · 422 B · b94f6be Raw
24 lines · plain
1// RUN: mlir-opt %s -split-input-file2 3func.func @test_ops_verify(%arg: i32) -> f32 {4  %0 = "test.constant"() { value = 5.3 : f32 } : () -> f325  %1 = test.loop_block %arg : (i32) -> f32 {6  ^bb0(%arg1 : i32):7    test.loop_block_term iter %arg exit %08  }9  return %1 : f3210}11 12// -----13 14func.func @test_no_terminator(%arg: index) {15  test.switch_with_no_break %arg16  case 0 {17  ^bb:18  }19  case 1 {20  ^bb:21  }22  return23}24