diff options
Diffstat (limited to 'clang/test/CodeGenOpenCL/single-precision-constant.cl')
-rw-r--r-- | clang/test/CodeGenOpenCL/single-precision-constant.cl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGenOpenCL/single-precision-constant.cl b/clang/test/CodeGenOpenCL/single-precision-constant.cl new file mode 100644 index 0000000..62b37c1 --- /dev/null +++ b/clang/test/CodeGenOpenCL/single-precision-constant.cl @@ -0,0 +1,7 @@ +// RUN: %clang_cc1 %s -cl-single-precision-constant -emit-llvm -o - | FileCheck %s + +float fn(float f) { + // CHECK: fmul float + // CHECK: fadd float + return f*2. + 1.; +} |