| 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. |
| 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}} |
| 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; |
| 16 |
} |