mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 02:56:06 +00:00

Add support for #pragma float_control Reviewers: rjmccall, erichkeane, sepavloff Differential Revision: https://reviews.llvm.org/D72841 This reverts commit fce82c0ed310174fe48e2402ac731b6340098389.
12 lines
221 B
C
12 lines
221 B
C
// RUN: %clang_cc1 -ffast-math -ffp-contract=fast -emit-llvm -o - %s | FileCheck %s
|
|
float f0, f1, f2;
|
|
|
|
void foo(void) {
|
|
// CHECK-LABEL: define {{.*}}void @foo()
|
|
|
|
// CHECK: fadd fast
|
|
f0 = f1 + f2;
|
|
|
|
// CHECK: ret
|
|
}
|