2011-02-16 03:46:41 +08:00
|
|
|
// RUN: %clang_cc1 %s -cl-single-precision-constant -emit-llvm -o - | FileCheck %s
|
2010-12-04 09:50:56 +08:00
|
|
|
|
|
|
|
float fn(float f) {
|
2012-10-03 00:36:54 +08:00
|
|
|
// CHECK: tail call float @llvm.fmuladd.f32(float %f, float 2.000000e+00, float 1.000000e+00)
|
2010-12-04 09:50:56 +08:00
|
|
|
return f*2. + 1.;
|
|
|
|
}
|