[Mlir-commits] [mlir] [MLIR][LLVM] Add ftz and fuse FP ops related function attribute support (PR #97812)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sat Jul 6 07:31:50 PDT 2024
================
@@ -344,6 +344,72 @@ declare void @func_attr_no_signed_zeros_fp_math_true() "no-signed-zeros-fp-math"
; CHECK-SAME: attributes {no_signed_zeros_fp_math = false}
declare void @func_attr_no_signed_zeros_fp_math_false() "no-signed-zeros-fp-math"="false"
+; // -----
+
+; CHECK-LABEL: @func_attr_denormal_fp_math_ieee
+; CHECK-SAME: attributes {denormal_fp_math = "ieee"}
+declare void @func_attr_denormal_fp_math_ieee() "denormal-fp-math"="ieee"
----------------
runseny wrote:
> Or is there specific reason for testing the different strings?
These different strings are the general cmd options in codegen such as [denormalFpMath related](https://github.com/llvm/llvm-project/blob/main/llvm/lib/CodeGen/CommandFlags.cpp#L259) and [fp-contract](https://github.com/llvm/llvm-project/blob/main/llvm/lib/CodeGen/CommandFlags.cpp#L301). So i tested all these general cmd options for functional completeness.
https://github.com/llvm/llvm-project/pull/97812
More information about the Mlir-commits
mailing list