summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/2012-04-16-FastMath.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/2012-04-16-FastMath.c')
-rw-r--r--clang/test/CodeGen/2012-04-16-FastMath.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGen/2012-04-16-FastMath.c b/clang/test/CodeGen/2012-04-16-FastMath.c
new file mode 100644
index 00000000000..d7c3d9a2d63
--- /dev/null
+++ b/clang/test/CodeGen/2012-04-16-FastMath.c
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 %s -ffast-math -emit-llvm -o - | FileCheck %s
+
+double add(double x, double y) {
+// CHECK: @add
+ return x + y;
+// CHECK: fadd double %{{.}}, %{{.}}, !fpmath !0
+}
+// CHECK: !0 = metadata !{metadata !"fast"}
OpenPOWER on IntegriCloud