llvm-for-llvmta/tools/clang/test/CodeGen/fast-math.c
Nils Hölscher 7f403f4f1e added clang
2022-04-25 13:02:35 +02:00

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
}