-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[Driver] Clean up denormal handling with fast-math-related options #89477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8ab931c
bf1e013
f1f643c
0614850
4fc3057
a7e4f5c
fb98b1a
42e59d2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,7 +64,8 @@ | |
|
||
// RUN: %clang -### -ffp-model=strict -fdenormal-fp-math=preserve-sign,preserve-sign -c %s 2>&1 \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can use (In the absence of a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't intend to change the logic of this test. The behavior here should be target-independent now. |
||
// RUN: | FileCheck --check-prefix=WARN10 %s | ||
// WARN10: warning: overriding '-ffp-model=strict' option with '-fdenormal-fp-math=preserve-sign,preserve-sign' [-Woverriding-option] | ||
// WARN10: "-cc1" | ||
// WARN10-NOT: warning: overriding '-ffp-model=strict' option with '-fdenormal-fp-math=preserve-sign,preserve-sign' [-Woverriding-option] | ||
|
||
// RUN: %clang -### -ffp-model=fast -ffp-model=strict -c %s 2>&1 | FileCheck \ | ||
// RUN: --check-prefix=WARN11 %s | ||
|
@@ -73,9 +74,8 @@ | |
|
||
// RUN: %clang -### -Ofast -ffp-model=strict -c %s 2>&1 | FileCheck \ | ||
// RUN: --check-prefix=WARN12 %s | ||
// RUN: %clang -### -ffast-math -ffp-model=strict -c %s 2>&1 | FileCheck \ | ||
// RUN: --check-prefix=WARN12 %s | ||
// WARN12-NOT: warning: overriding '-ffp-model=strict' option with '-ffp-model=strict' [-Woverriding-option] | ||
// RUN: %clang -### -Werror -ffast-math -ffp-model=strict -c %s | ||
// WARN12: warning: overriding '-ffp-model=strict' option with '-Ofast' | ||
|
||
// RUN: %clang -### -ffp-model=strict -fapprox-func -c %s 2>&1 \ | ||
// RUN: | FileCheck --check-prefix=WARN13 %s | ||
|
@@ -129,6 +129,7 @@ | |
// RUN: | FileCheck --check-prefix=CHECK-NO-EXCEPT %s | ||
// RUN: %clang -### -nostdinc -ffp-model=strict -Ofast -c %s 2>&1 \ | ||
// RUN: | FileCheck --check-prefix=CHECK-NO-EXCEPT %s | ||
// CHECK-NO-EXCEPT: "-cc1" | ||
// CHECK-NO-EXCEPT-NOT: "-ffp-exception-behavior=strict" | ||
|
||
// RUN: %clang -### -nostdinc -ffp-exception-behavior=strict -c %s 2>&1 \ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit:
A->getValue() != "fast"
inline used-once variable and prefer
==
!=
for StringRef, which are much more common thanequals
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope to add -ffp-model=aggressive soon, with will require a second use of Model here.