llvm-project/clang/test/CodeGen/cl-single-precision-constant.c
Peter Collingbourne 0b69e1a628 Implement -cl-single-precision-constant
llvm-svn: 120877
2010-12-04 01:50:56 +00:00

8 lines
178 B
C

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