[PATCH] D73570: [FPEnv][X86] Platform-specific builtin constrained FP enablement
Craig Topper via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 28 17:38:08 PST 2020
craig.topper added inline comments.
================
Comment at: clang/test/CodeGen/fma-builtins-constrained.c:4
+// RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +fma -S -o - | FileCheck --check-prefix=COMMON --check-prefix=CHECK-ASM %s
+// RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +fma -ffp-exception-behavior=strict -S -o - | FileCheck --check-prefix=COMMON --check-prefix=CHECK-ASM %s
+
----------------
Technically the fmsub/fnmsub/fnmadd assembly requires optimizations to be enabled. If it appears to work without optimizations its only because fast-isel fell back to SelectionDAG and picked up optimizations due to that. Not something that should be relied on.
================
Comment at: clang/test/CodeGen/fma-builtins-constrained.c:6
+
+// FIXME: Several of these tests are broken when constrained.
+
----------------
Is this just referring to the FIXME-CHECK-ASM?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73570/new/
https://reviews.llvm.org/D73570
More information about the cfe-commits
mailing list