Index: clang/lib/Frontend/CompilerInvocation.cpp =================================================================== --- clang/lib/Frontend/CompilerInvocation.cpp +++ clang/lib/Frontend/CompilerInvocation.cpp @@ -2322,7 +2322,6 @@ Opts.AltiVec = 0; Opts.ZVector = 0; Opts.setLaxVectorConversions(LangOptions::LaxVectorConversionKind::None); - Opts.setDefaultFPContractMode(LangOptions::FPM_On); Opts.NativeHalfType = 1; Opts.NativeHalfArgsAndReturns = 1; Opts.OpenCLCPlusPlus = Opts.CPlusPlus; Index: clang/test/CodeGenOpenCL/relaxed-fpmath.cl =================================================================== --- clang/test/CodeGenOpenCL/relaxed-fpmath.cl +++ clang/test/CodeGenOpenCL/relaxed-fpmath.cl @@ -17,7 +17,8 @@ } float fused_mad(float a, float b, float c) { - // NORMAL: tail call float @llvm.fmuladd.f32(float %a, float %b, float %c) + // NORMAL: fmul float + // NORMAL: fadd float // FAST: fmul fast float // FAST: fadd fast float // MAD: fmul contract float Index: clang/test/CodeGenOpenCL/single-precision-constant.cl =================================================================== --- clang/test/CodeGenOpenCL/single-precision-constant.cl +++ clang/test/CodeGenOpenCL/single-precision-constant.cl @@ -1,6 +1,7 @@ // RUN: %clang_cc1 %s -cl-single-precision-constant -emit-llvm -o - | FileCheck %s float fn(float f) { - // CHECK: tail call float @llvm.fmuladd.f32(float %f, float 2.000000e+00, float 1.000000e+00) + // CHECK: fmul float %f, 2.000000e+00 + // CHECK: fadd float %mul, 1.000000e+00 return f*2. + 1.; }