YouCompleteMe/cpp/llvm/tools/clang/test/CodeGenOpenCL/single-precision-constant.cl

8 lines
172 B
Common Lisp
Raw Normal View History

// 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.;
}