Skip to content

Commit de7c49d

Browse files
committed
Add test
1 parent 7d23e7d commit de7c49d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// RUN: mlir-opt %s -inline | FileCheck %s
2+
3+
// CHECK-LABEL: @main
4+
func.func @main(%arg0: i32) -> index {
5+
// CHECK-NOT: call
6+
// CHECK: index.castu
7+
%0 = call @f(%arg0) : (i32) -> index
8+
return %0 : index
9+
}
10+
11+
func.func @f(%arg0: i32) -> index {
12+
%0 = index.castu %arg0 : i32 to index
13+
return %0 : index
14+
}

0 commit comments

Comments
 (0)