llvm-project/clang/test/CodeGen/cl-single-precision-constant.c

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