brintos

brintos / llvm-project-archived public Read only

0
0
Text · 807 B · e540a59 Raw
19 lines · c
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 %s4//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 %s8 9// no-warn-no-diagnostics10 11float 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 15float 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}}19