| 1 |
// RUN: %clang_cc1 -fexperimental-strict-floating-point \ |
| 2 |
// RUN: -triple i386-pc-windows -target-cpu pentium4 -target-feature -sse \ |
| 3 |
// RUN: -emit-llvm -ffp-eval-method=source -o - -verify=warn %s |
| 4 |
// |
| 5 |
// RUN: %clang_cc1 -fexperimental-strict-floating-point \ |
| 6 |
// RUN: -triple i386-pc-windows -target-cpu pentium4 \ |
| 7 |
// RUN: -emit-llvm -ffp-eval-method=source -o - -verify=no-warn %s |
| 8 |
|
| 9 |
// no-warn-no-diagnostics |
| 10 |
|
| 11 |
float add1(float a, float b, float c) { |
| 12 |
return a + b + c; |
| 13 |
} // warn-warning{{setting the floating point evaluation method to `source` on a target without SSE is not supported}} |
| 14 |
|
| 15 |
float add2(float a, float b, float c) { |
| 16 |
#pragma clang fp eval_method(source) |
| 17 |
return a + b + c; |
| 18 |
} // warn-warning{{setting the floating point evaluation method to `source` on a target without SSE is not supported}} |