[Mlir-commits] [mlir] [MLIR][LLVM] Add isnan intrinsic (PR #127288)

Ivan R. Ivanov llvmlistbot at llvm.org
Fri Feb 14 17:12:09 PST 2025


================
@@ -141,6 +141,16 @@ llvm.func @hyperbolic_trig_test(%arg0: f32, %arg1: vector<8xf32>) {
   llvm.return
 }
 
+// CHECK-LABEL: @isnan_test
+llvm.func @isnan_test(%arg0: f32, %arg1: vector<8xf32>) {
+  // CHECK: call i1 @llvm.isnan.f32
+  llvm.intr.isnan(%arg0) : (f32) -> i1
+  // CHECK: call <8 x i1> @llvm.isnan.v8f32
+  llvm.intr.sinh(%arg1) : (vector<8xf32>) -> vector<8xi1>
----------------
ivanradanov wrote:

sinh?

https://github.com/llvm/llvm-project/pull/127288


More information about the Mlir-commits mailing list