llvm-project/clang/test/Misc/ffp-contract.c
Zahira Ammarguellat f04e387055 Making the code compliant to the documentation about Floating Point
support default values for C/C++. FPP-MODEL=PRECISE enables
FFP-CONTRACT(FMA is enabled).

Fix for https://bugs.llvm.org/show_bug.cgi?id=50222
2021-11-11 07:40:35 -05:00

11 lines
295 B
C

// RUN: %clang_cc1 -O3 -ffp-contract=fast -triple=aarch64-apple-darwin \
// RUN: -S -o - %s | FileCheck --check-prefix=CHECK-FMADD %s
// REQUIRES: aarch64-registered-target
float fma_test1(float a, float b, float c) {
// CHECK-FMADD: fmadd
float x = a * b;
float y = x + c;
return y;
}