[PATCH] D136786: Fix `unsafe-fp-math` attribute emission.
Michele Scandale via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 1 15:09:36 PDT 2022
michele.scandale marked an inline comment as done.
michele.scandale added inline comments.
================
Comment at: clang/test/CodeGen/func-attr.c:5
// RUN: %clang -c -target x86_64 -funsafe-math-optimizations \
-// RUN: -emit-llvm -S -o - %s | FileCheck %s
+// RUN: -fno-math-errno -ffp-contract=fast -emit-llvm -S -o - %s | FileCheck %s --check-prefixes=CHECK,CHECK-UNSAFE
+
----------------
michele.scandale wrote:
> See comment about `MathErrno` in `CGCall.cpp`
Replaced command line with `%clang_cc1` to avoid depending on compiler driver behavior.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136786/new/
https://reviews.llvm.org/D136786
More information about the cfe-commits
mailing list