summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/cl-single-precision-constant.c
blob: adde19361b1b8b5426cc424c38d8f3d777bb4776 (plain)
1
2
3
4
5
6
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.;
}
OpenPOWER on IntegriCloud