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