diff options
Diffstat (limited to 'mlir/test/Transforms/canonicalize.mlir')
-rw-r--r-- | mlir/test/Transforms/canonicalize.mlir | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mlir/test/Transforms/canonicalize.mlir b/mlir/test/Transforms/canonicalize.mlir index 47a19bb..9b578e6 100644 --- a/mlir/test/Transforms/canonicalize.mlir +++ b/mlir/test/Transforms/canonicalize.mlir @@ -1224,3 +1224,14 @@ func.func @clone_nested_region(%arg0: index, %arg1: index, %arg2: index) -> memr // CHECK-NEXT: scf.yield %[[ALLOC3_2]] // CHECK: memref.dealloc %[[ALLOC1]] // CHECK-NEXT: return %[[ALLOC2]] + +// ----- + +// CHECK-LABEL: func @test_materialize_failure +func.func @test_materialize_failure() -> i64 { + %const = index.constant 1234 + // Cannot materialize this castu's output constant. + // CHECK: index.castu + %u = index.castu %const : index to i64 + return %u: i64 +} |