Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Parser / pragma-fp-warn.c
blobc52bd4e4805ab9ba6d4391ea74bbdd5f14781b6d
2 // RUN: %clang_cc1 -triple wasm32 -fsyntax-only -Wno-unknown-pragmas -Wignored-pragmas -verify %s
3 // RUN: %clang_cc1 -triple thumbv7 -fsyntax-only -Wno-unknown-pragmas -Wignored-pragmas -verify %s
4 // RUN: %clang_cc1 -DEXPOK -triple aarch64 -fsyntax-only -Wno-unknown-pragmas -Wignored-pragmas -verify %s
5 // RUN: %clang_cc1 -DEXPOK -triple x86_64 -fsyntax-only -Wno-unknown-pragmas -Wignored-pragmas -verify %s
6 // RUN: %clang_cc1 -DEXPOK -triple systemz -fsyntax-only -Wno-unknown-pragmas -Wignored-pragmas -verify %s
7 // RUN: %clang_cc1 -DEXPOK -triple powerpc -fsyntax-only -Wno-unknown-pragmas -Wignored-pragmas -verify %s
8 #ifdef EXPOK
9 // expected-no-diagnostics
10 #else
11 // expected-warning@+4 {{'#pragma float_control' is not supported on this target - ignored}}
12 // expected-warning@+5 {{'#pragma FENV_ACCESS' is not supported on this target - ignored}}
13 // expected-warning@+6 {{'#pragma FENV_ROUND' is not supported on this target - ignored}}
14 #endif
15 #pragma float_control(precise, on)
17 #pragma STDC FENV_ACCESS OFF
19 #pragma STDC FENV_ROUND FE_DOWNWARD