commit | 0b69e1a6280d8cfc83b995be8e02bf0c676540bd | [log] [tgz] |
---|---|---|
author | Peter Collingbourne <peter@pcc.me.uk> | Sat Dec 04 01:50:56 2010 +0000 |
committer | Peter Collingbourne <peter@pcc.me.uk> | Sat Dec 04 01:50:56 2010 +0000 |
tree | 63e87fe6df7763564318da9d3b2f9fcfea9d8622 | |
parent | 31587c86c161f29f5ce6144207a6043edae82c9f [diff] |
Implement -cl-single-precision-constant llvm-svn: 120877
diff --git a/clang/test/CodeGen/cl-single-precision-constant.c b/clang/test/CodeGen/cl-single-precision-constant.c new file mode 100644 index 0000000..adde193 --- /dev/null +++ b/clang/test/CodeGen/cl-single-precision-constant.c
@@ -0,0 +1,7 @@ +// RUN: %clang_cc1 %s -x cl -cl-single-precision-constant -emit-llvm -o - | FileCheck %s + +float fn(float f) { + // CHECK: fmul float + // CHECK: fadd float + return f*2. + 1.; +}