diff options
Diffstat (limited to 'test/CodeGen/fast-math.c')
-rw-r--r-- | test/CodeGen/fast-math.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/fast-math.c b/test/CodeGen/fast-math.c new file mode 100644 index 0000000..76cfbbd --- /dev/null +++ b/test/CodeGen/fast-math.c @@ -0,0 +1,11 @@ +// RUN: %clang_cc1 -ffast-math -emit-llvm -o - %s | FileCheck %s +float f0, f1, f2; + +void foo(void) { + // CHECK: define void @foo() + + // CHECK: fadd fast + f0 = f1 + f2; + + // CHECK: ret +} |