blob: bfa13b4dd354519c04343a6275d164477a5a838d [file] [log] [blame]
Kevin P. Neald4ce8622020-07-10 08:46:09 -04001// 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.
8
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}}
11float 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;
16}