[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / fp-strictfp.cpp
blob124c0f0be29b9c73542cbd8a69356fbe022df3e2
1 // RUN: %clang_cc1 -triple mips64-linux-gnu -frounding-math -ffp-exception-behavior=strict -O2 -verify=rounding,exception -emit-llvm -o - %s | FileCheck %s
2 // RUN: %clang_cc1 -triple mips64-linux-gnu -ffp-exception-behavior=strict -O2 -verify=exception -emit-llvm -o - %s | FileCheck %s
3 // RUN: %clang_cc1 -triple mips64-linux-gnu -frounding-math -O2 -verify=rounding -emit-llvm -o - %s | FileCheck %s
4 //
5 // Verify that constrained intrinsics are not used.
6 // As more targets gain support for constrained intrinsics the triple
7 // in this test will need to change.
9 // rounding-warning@* {{overriding currently unsupported rounding mode on this target}}
10 // exception-warning@* {{overriding currently unsupported use of floating point exceptions on this target}}
11 float fp_precise_1(float a, float b, float c) {
12 // CHECK: define{{.*}} float @_Z12fp_precise_1fff
13 // CHECK: %[[M:.+]] = fmul float{{.*}}
14 // CHECK: fadd float %[[M]], %c
15 return a * b + c;