hanchenye-llvm-project/clang/lib/Driver/ToolChains
Keith Walker 167961f6dc [ARM] disable FPU features when using soft floating point.
To be compatible with GCC if soft floating point is in effect any FPU
specified is effectively ignored, eg,

  -mfloat-abi=soft -fpu=neon

If any floating point features which require FPU hardware are enabled
they must be disable.

There was some support for doing this for NEON, but it did not handle
VFP, nor did it prevent the backend from emitting the build attribute
Tag_FP_arch describing the generated code as using the floating point
hardware if a FPU was specified (even though soft float does not use
the FPU).

Disabling the hardware floating point features for targets which are
compiling for soft float has meant that some tests which were incorrectly
checking for hardware support also needed to be updated. In such cases,
where appropriate the tests have been updated to check compiling for
soft float and a non-soft float variant (usually softfp). This was
usually because the target specified in the test defaulted to soft float.

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

llvm-svn: 325492
2018-02-19 12:40:26 +00:00
..
Arch [ARM] disable FPU features when using soft floating point. 2018-02-19 12:40:26 +00:00
AMDGPU.cpp AMDGPU/NFC: Move getAMDGPUTargetFeatures to AMDGPU toolchain 2017-11-10 19:09:57 +00:00
AMDGPU.h AMDGPU/NFC: Move getAMDGPUTargetFeatures to AMDGPU toolchain 2017-11-10 19:09:57 +00:00
AVR.cpp
AVR.h
Ananas.cpp ananas: Add shared library support 2018-01-09 09:18:14 +00:00
Ananas.h
BareMetal.cpp
BareMetal.h Driver: remove `SupportsObjCGC` (NFC) 2017-11-19 00:45:33 +00:00
Clang.cpp Clean up -fdiscard-value-name handling 2018-02-14 20:56:52 +00:00
Clang.h [RISCV] Add the RISCV target and compiler driver 2018-01-11 13:36:56 +00:00
CloudABI.cpp
CloudABI.h
CommonArgs.cpp AMDGPU: Enable PIC by default for amdgcn 2018-02-15 01:01:53 +00:00
CommonArgs.h
Contiki.cpp
Contiki.h
CrossWindows.cpp
CrossWindows.h
Cuda.cpp [CUDA] Add option to generate relocatable device code 2018-02-12 10:46:45 +00:00
Cuda.h [OpenMP] Consistently use cubin extension for nvlink 2017-11-21 14:44:45 +00:00
Darwin.cpp [driver][darwin] Take the OS version from -m<os>-version-min argument when 2017-12-29 17:42:40 +00:00
Darwin.h [driver][darwin] Refactor the target selection code, NFC 2017-12-09 02:27:11 +00:00
DragonFly.cpp
DragonFly.h
FreeBSD.cpp Adding msan support for FreeBSD 2018-02-15 14:19:23 +00:00
FreeBSD.h Toolchain: Normalize dwarf, sjlj and seh eh 2017-11-29 07:25:12 +00:00
Fuchsia.cpp [Fuchsia] Enable Fuzzer as a supported sanitizer on Fuchsia 2018-01-19 01:58:26 +00:00
Fuchsia.h [Driver] Make the use of relax relocations a per target option 2017-11-22 01:38:31 +00:00
Gnu.cpp Revert "Revert rC322769: [RISCV] Propagate -mabi and -march values to GNU assembler." 2018-01-31 18:11:09 +00:00
Gnu.h [Solaris] gcc toolchain handling revamp 2018-01-23 12:23:52 +00:00
Haiku.cpp
Haiku.h
Hexagon.cpp [Hexagon] Accept lowercase b in -hvx-length=64b and -hvx-length=128b 2018-01-24 18:42:19 +00:00
Hexagon.h
Lanai.h
Linux.cpp [Driver] Add support for mips32 and scudo 2018-01-25 10:09:33 +00:00
Linux.h Revert 320391: Certain targets are failing, pulling back to diagnose. 2017-12-11 18:14:51 +00:00
MSVC.cpp
MSVC.h
MSVCSetupApi.h
MinGW.cpp Toolchain: Normalize dwarf, sjlj and seh eh 2017-11-29 07:25:12 +00:00
MinGW.h Toolchain: Normalize dwarf, sjlj and seh eh 2017-11-29 07:25:12 +00:00
Minix.cpp
Minix.h
MipsLinux.cpp
MipsLinux.h
Myriad.cpp [Myriad] Remove invalidated -elf flag for MoviAsm 2018-01-08 20:36:08 +00:00
Myriad.h
NaCl.cpp
NaCl.h
NetBSD.cpp Toolchain: Normalize dwarf, sjlj and seh eh 2017-11-29 07:25:12 +00:00
NetBSD.h Toolchain: Normalize dwarf, sjlj and seh eh 2017-11-29 07:25:12 +00:00
OpenBSD.cpp
OpenBSD.h
PS4CPU.cpp
PS4CPU.h
Solaris.cpp [Solaris] Silence -pthread warning on Solaris 2018-02-06 13:21:12 +00:00
Solaris.h [Sanitizers] Basic Solaris sanitizer support (PR 33274) 2018-02-05 23:59:13 +00:00
TCE.cpp
TCE.h
WebAssembly.cpp [WebAssembly] Support -stdlib=libc++ switch 2018-01-12 17:54:49 +00:00
WebAssembly.h [WebAssembly] Support -stdlib=libc++ switch 2018-01-12 17:54:49 +00:00
XCore.cpp
XCore.h