llvm-project/clang/test/Frontend
Rafael Espindola eb26547177 Move -mfpmath handling to -cc1 and implement it for x86.
The original idea was to implement it all on the driver, but to do that the
driver needs to know the sse level and to do that it has to know the default
features of a cpu.

Benjamin Kramer pointed out that if one day we decide to implement support for
' __attribute__ ((__target__ ("arch=core2")))', then the frontend needs to
keep its knowledge of default features of a cpu.

To avoid duplicating which part of clang handles default cpu features,
it is probably better to handle -mfpmath in the frontend.

For ARM this patch is just a small improvement. Instead of a cpu list, we
check if neon is enabled, which allows us to reject things like

-mcpu=cortex-a9 -mfpu=vfp -mfpmath=neon

For X86, since LLVM doesn't support an independent ssefp feature, we just
make sure the selected -mfpmath matches the sse level.

llvm-svn: 188939
2013-08-21 21:59:03 +00:00
..
Inputs rewrite-includes: Rewrite __has_include(_next) to get rid of a host dependency. 2013-04-16 19:08:41 +00:00
Weverything.c Basic/Diagnostics: Rewrite DiagnosticIDs::getDiagnosticLevel completely to be straighter line code, use the new DiagnosticMappingInfo flags, and eliminate the odd MAP_WARNING_NO_WERROR and friend mappings. 2011-09-29 01:58:05 +00:00
Wno-everything.c Add test for -Wno-everything. 2012-01-27 07:10:14 +00:00
ast-codegen.c A number of test cases assume that an "int" parameter or return value 2012-10-24 12:22:56 +00:00
ast-main.c
ast-main.cpp Delayed template parsing is not supported by the AST serialization system yet, so turning it off. This fixes a test breakage caused by r177336. 2013-03-21 19:38:59 +00:00
cc1-return-codes.c Indicate success for simple options when clang called with -cc1. 2013-08-07 12:54:47 +00:00
cpp-output.c
darwin-version.c Replace 'grep foo | count 0' with 'not grep foo'. 2013-07-04 15:22:16 +00:00
dependency-gen-escaping.c Escape # and $ in dependency files. 2013-04-02 13:38:48 +00:00
dependency-gen.c test/Frontend/dependency-gen.c: Relax expressions for Win32 host (mingw msys). 2011-11-17 07:21:33 +00:00
dependency-generation-crash.c
diagnostics-option-names.c
hexagon-target-basic.c hexagon-target-basic.c test: add REQUIRES line for hexagon target 2013-01-02 22:30:14 +00:00
iframework.c Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00
ir-support-codegen.ll
ir-support-errors.ll Add 'not' to commands that are expected to fail. 2013-07-04 16:16:58 +00:00
lit.local.cfg
macros.c Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00
mfpmath.c Move -mfpmath handling to -cc1 and implement it for x86. 2013-08-21 21:59:03 +00:00
output-failures.c Update for llvm::sys::fs::unique_file not creating directories. 2013-06-28 03:49:04 +00:00
preprocessed-output-macro-first-token.c
print-header-includes.c clang-cl: Support /showIncludes 2013-08-09 00:32:23 +00:00
rewrite-includes-header-cmd-line.c [frontend] '-frewrite-includes' should not ignore headers included from command-line. 2013-07-26 15:32:04 +00:00
rewrite-includes-invalid-hasinclude.c Add 'not' to commands that are expected to fail. 2013-07-04 16:16:58 +00:00
rewrite-includes-missing.c [frontend] -frewrite-includes: if there was no inclusion, don't add lineinfo that indicates return from another file. 2013-04-10 01:53:37 +00:00
rewrite-includes-modules.c [frontend] -frewrite-includes: turn implicit module imports into @imports. 2013-04-10 01:53:50 +00:00
rewrite-includes-warnings.c avoid bogus warnings about "unknown" pragmas with -frewrite-includes (pr#14831) 2013-07-20 14:30:01 +00:00
rewrite-includes.c fix sometimes incorrect line numbers in -frewrite-includes mode (pr#14795) 2013-07-20 14:23:27 +00:00
rewrite-macros.c Follow Jordan's advice and use {{^}} and {{$}} for this test 2013-04-11 18:39:10 +00:00
stdin.c
system-header-prefix.c Add -isystem-prefix and -ino-system-prefix arguments, which can be used to 2012-06-13 20:27:03 +00:00
undef.c
unknown-pragmas.c Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00
verify-directive.h Allow -verify directives to be filtered by preprocessing. 2012-07-11 19:58:23 +00:00
verify-fatal.c Add 'not' to commands that are expected to fail. 2013-07-04 16:16:58 +00:00
verify.c Add 'not' to commands that are expected to fail. 2013-07-04 16:16:58 +00:00
verify2.c Add 'not' to commands that are expected to fail. 2013-07-04 16:16:58 +00:00
verify2.h Update VerifyDiagnosticConsumer to only get directives during parsing. 2012-08-10 01:06:16 +00:00
verify3.c Add 'not' to commands that are expected to fail. 2013-07-04 16:16:58 +00:00
warning-mapping-1.c Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00
warning-mapping-2.c Basic/Diagnostics: Rewrite DiagnosticIDs::getDiagnosticLevel completely to be straighter line code, use the new DiagnosticMappingInfo flags, and eliminate the odd MAP_WARNING_NO_WERROR and friend mappings. 2011-09-29 01:58:05 +00:00
warning-mapping-3.c tests: Add some more tests for warning mappings. 2011-09-29 01:37:40 +00:00
warning-mapping-4.c Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00
warning-mapping-5.c Basic/Diagnostics: Apparently, #pragma ... diagnostic is intended to override 2011-10-04 21:17:24 +00:00
warning-options.cpp [driver] Warnings for warning options are handled by the frontend. The driver needs to process the 2013-01-15 01:21:53 +00:00