[flang-commits] [clang] [flang] [mlir] [flang] Add support for -mrecip[=<list>] (PR #143418)

Cameron McInally via flang-commits flang-commits at lists.llvm.org
Mon Jun 9 12:20:43 PDT 2025


================
@@ -0,0 +1,9 @@
+; RUN: mlir-translate -import-llvm -split-input-file %s | FileCheck %s
+
+; CHECK-LABEL: llvm.func @reciprocal_estimates()
+; CHECK-SAME: reciprocal_estimates = "all"
+define void @reciprocal_estimates() #0 {
+  ret void
+}
+
+attributes #0 = { "reciprocal-estimates" = "all" }
----------------
mcinally wrote:

That was actually the Frontend test, but I'm updating it now. Thanks!

This test should be fine since that's the input IR we're specifying.

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


More information about the flang-commits mailing list