hanchenye-llvm-project/clang/test
Simon Tatham dc83a3c449 [ARM] Fix recent breakage of -mfpu=none.
The recent change D60691 introduced a bug in clang when handling
option combinations such as `-mcpu=cortex-m4 -mfpu=none`. Those
options together should select Cortex-M4 but disable all use of
hardware FP, but in fact, now hardware FP instructions can still be
generated in that mode.

The reason is because the handling of FPUVersion::NONE disables all
the same feature names it used to, of which the base one is `vfp2`.
But now there are further features below that, like `vfp2d16fp` and
(following D60694) `fpregs`, which also need to be turned off to
disable hardware FP completely.

Added a tiny test which double-checks that compiling a simple FP
function doesn't access the FP registers.

Reviewers: SjoerdMeijer, dmgreen

Reviewed By: dmgreen

Subscribers: lebedev.ri, javed.absar, kristof.beyls, hiraditya, cfe-commits, llvm-commits

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D62729

llvm-svn: 362380
2019-06-03 11:02:53 +00:00
..
ARCMT
AST Factor out commonality between variable capture initialization and 2019-06-02 04:00:43 +00:00
ASTMerge Fix ASTMerge/namespace/test.cpp after r360701 2019-05-14 20:01:03 +00:00
Analysis Revert "[analyzer] exploded-graph-rewriter: An attempt to fix Windows buildbots." 2019-06-03 00:21:00 +00:00
CXX If capturing a variable fails, add a capture anyway (and mark it 2019-05-28 23:09:44 +00:00
CodeCompletion [CodeComplete] Add a bit more whitespace to completed patterns 2019-06-03 08:34:25 +00:00
CodeGen [ARM] Fix recent breakage of -mfpu=none. 2019-06-03 11:02:53 +00:00
CodeGenCUDA [CUDA][HIP] Skip setting `externally_initialized` for static device variables. 2019-05-29 17:23:27 +00:00
CodeGenCXX Add mangling test coverage for non-volatile const member pointers 2019-06-02 17:23:53 +00:00
CodeGenCoroutines
CodeGenObjC Add the `objc_class_stub` attribute. 2019-05-30 04:09:01 +00:00
CodeGenObjCXX [ObjC] Fix encoding of ObjC pointer types that are pointers to typedefs 2019-05-29 21:23:30 +00:00
CodeGenOpenCL Reapply: LLVM IR: update Clang tests for byval being a typed attribute. 2019-05-30 18:49:19 +00:00
CodeGenOpenCLCXX [OpenCL] Make global ctor init function a kernel 2019-05-09 13:55:44 +00:00
Coverage Revert "clang support gnu asm goto." 2019-05-30 15:38:02 +00:00
CoverageMapping Fix clang tests broken by r353547 that depend on InstrProf 2019-02-10 20:17:07 +00:00
Driver [ARM] Fix recent breakage of -mfpu=none. 2019-06-03 11:02:53 +00:00
FixIt [c++20] P0780R2: Support pack-expansion of init-captures. 2019-05-21 20:10:50 +00:00
Format
Frontend Do not resolve directory junctions for `-fdiagnostics-absolute-paths` on Windows. 2019-05-24 04:46:22 +00:00
Headers re-commit r361928: [PowerPC] [Clang] Port SSE intrinsics to PowerPC 2019-05-31 04:42:13 +00:00
Import [ASTImporter] Copy Argument Passing Restrictions setting when importing a CXXRecordDecl definition 2019-04-26 18:51:28 +00:00
Index [Index] Correctly set symbol kind of IndirectFieldDecl 2019-05-29 10:11:14 +00:00
Integration
Layout
Lexer Factor out repeated code parsing and concatenating header-names from 2019-03-19 01:51:19 +00:00
Misc Add the `objc_class_stub` attribute. 2019-05-30 04:09:01 +00:00
Modules Fix r361428 for Windows buildbots/mangling 2019-05-22 21:58:17 +00:00
OpenMP Defer capture initialization for captured regions until after we've left 2019-05-31 00:45:10 +00:00
PCH Revert "clang support gnu asm goto." 2019-05-30 15:38:02 +00:00
Parser Revert "clang support gnu asm goto." 2019-05-30 15:38:02 +00:00
Preprocessor [X86] Add VP2INTERSECT instructions 2019-05-31 06:09:35 +00:00
Profile [PGO] Fix buildbot failure in 359215 2019-04-25 21:16:41 +00:00
Refactor
Rewriter
Sema Revert "clang support gnu asm goto." 2019-05-30 15:38:02 +00:00
SemaCUDA Permit redeclarations of a builtin to specify calling convention. 2019-03-21 13:30:56 +00:00
SemaCXX Revert rL362358 : PR42104: Support instantiations of lambdas that implicitly capture packs. 2019-06-03 09:56:09 +00:00
SemaObjC Add the `objc_class_stub` attribute. 2019-05-30 04:09:01 +00:00
SemaObjCXX If capturing a variable fails, add a capture anyway (and mark it 2019-05-28 23:09:44 +00:00
SemaOpenCL [OpenCL] Declare builtin functions using TableGen 2019-06-03 09:39:11 +00:00
SemaOpenCLCXX [OpenCL] Prevent mangling kernel functions. 2019-05-07 14:22:34 +00:00
SemaTemplate Revert rL362358 : PR42104: Support instantiations of lambdas that implicitly capture packs. 2019-06-03 09:56:09 +00:00
TableGen
Templight
Tooling Remove a bogus sed option in test. 2019-04-08 16:34:38 +00:00
Unit [lit] Set shlibpath_var on AIX 2019-03-29 23:33:04 +00:00
VFS
clang-rename
.clang-format
CMakeLists.txt Fix bug in r362328 -- append to dependency list instead of overwrite it. 2019-06-02 17:56:26 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg.py [Analysis] Only run plugins tests if plugins are actually enabled 2019-05-17 06:07:37 +00:00
lit.site.cfg.py.in [Analysis] Only run plugins tests if plugins are actually enabled 2019-05-17 06:07:37 +00:00
make_test_dirs.pl