[Mlir-commits] [mlir] 4b13b06 - [mlir][complex] Sanity check for tan operation in complex dialect

Alexander Belyaev llvmlistbot at llvm.org
Thu Jun 2 01:34:07 PDT 2022


Author: lewuathe
Date: 2022-06-02T10:33:40+02:00
New Revision: 4b13b061ae53e84fcfb1dd7d2d5e87ca80c4ca6f

URL: https://github.com/llvm/llvm-project/commit/4b13b061ae53e84fcfb1dd7d2d5e87ca80c4ca6f
DIFF: https://github.com/llvm/llvm-project/commit/4b13b061ae53e84fcfb1dd7d2d5e87ca80c4ca6f.diff

LOG: [mlir][complex] Sanity check for tan operation in complex dialect

Add a sanity check for newly added tan operation in complex dialect. It follows-up to https://reviews.llvm.org/D126685.

Differential Revision: https://reviews.llvm.org/D126858

Added: 
    

Modified: 
    mlir/test/Dialect/Complex/ops.mlir

Removed: 
    


################################################################################
diff  --git a/mlir/test/Dialect/Complex/ops.mlir b/mlir/test/Dialect/Complex/ops.mlir
index f8902bc1b6a45..a78ad3efaa34a 100644
--- a/mlir/test/Dialect/Complex/ops.mlir
+++ b/mlir/test/Dialect/Complex/ops.mlir
@@ -80,5 +80,8 @@ func.func @ops(%f: f32) {
   // CHECK: complex.atan2 %[[C]], %[[C]] : complex<f32>
   %atan2 = complex.atan2 %complex, %complex : complex<f32>
 
+  // CHECK: complex.tan %[[C]] : complex<f32>
+  %tan = complex.tan %complex : complex<f32>
+
   return
 }


        


More information about the Mlir-commits mailing list