hanchenye-llvm-project/clang/lib/Driver/ToolChains/Arch
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
..
AArch64.cpp [AArch64] Fix PR34625 -mtune without -mcpu should not set -target-cpu 2017-10-24 09:51:55 +00:00
AArch64.h
ARM.cpp [ARM] disable FPU features when using soft floating point. 2018-02-19 12:40:26 +00:00
ARM.h [ARM] Option for reading thread pointer from coprocessor register 2017-09-12 10:40:58 +00:00
Mips.cpp [mips] Replace Triple::Environment check by the isGNUEnvironment() call. NFC 2017-09-07 06:05:06 +00:00
Mips.h [mips] Rename getSupportedNanEncoding() to getIEEE754Standard() 2017-08-22 13:35:27 +00:00
PPC.cpp [PowerPC] Pass CPU to assembler with -no-integrated-as 2017-07-27 08:58:28 +00:00
PPC.h [PowerPC] Pass CPU to assembler with -no-integrated-as 2017-07-27 08:58:28 +00:00
RISCV.cpp [RISCV] Add the RISCV target and compiler driver 2018-01-11 13:36:56 +00:00
RISCV.h [RISCV] Add the RISCV target and compiler driver 2018-01-11 13:36:56 +00:00
Sparc.cpp
Sparc.h
SystemZ.cpp
SystemZ.h
X86.cpp [clang-cl] Add support for /arch:AVX512F and /arch:AVX512 2018-01-25 15:24:43 +00:00
X86.h