xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenOpenCL/single-precision-constant.cl (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 %s -cl-single-precision-constant -emit-llvm -o - | FileCheck %s
2*f4a2713aSLionel Sambuc
3*f4a2713aSLionel Sambucfloat fn(float f) {
4*f4a2713aSLionel Sambuc  // CHECK: tail call float @llvm.fmuladd.f32(float %f, float 2.000000e+00, float 1.000000e+00)
5*f4a2713aSLionel Sambuc  return f*2. + 1.;
6*f4a2713aSLionel Sambuc}
7