summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenOpenCL/single-precision-constant.cl
blob: 62b37c1361373b20e1f497c242449fe4db786398 (about) (plain)
1
2
3
4
5
6
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.;
}