From c72c57c9e9b69944e3e009cd5e209634839581d3 Mon Sep 17 00:00:00 2001 From: dim Date: Mon, 8 Apr 2013 18:45:10 +0000 Subject: Vendor import of clang trunk r178860: http://llvm.org/svn/llvm-project/cfe/trunk@178860 --- test/CodeGen/fast-math.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/CodeGen/fast-math.c (limited to 'test/CodeGen/fast-math.c') 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 +} -- cgit v1.1