[Mlir-commits] [mlir] [mlir][index] Implement folders for CastSOp	and CastUOp (PR #66960)
    Jeff Niu 
    llvmlistbot at llvm.org
       
    Thu Sep 21 11:00:18 PDT 2023
    
    
  
================
@@ -556,3 +556,11 @@ func.func @sub_identity(%arg0: index) -> index {
   // CHECK-NEXT: return %arg0
   return %0 : index
 }
+
+// CHECK-LABEL: @castu_to_index
+func.func @castu_to_index() -> index {
+  // CHECK: index.constant 8000000000000
----------------
Mogball wrote:
I gave up and just added unit tests
https://github.com/llvm/llvm-project/pull/66960
    
    
More information about the Mlir-commits
mailing list