[all-commits] [llvm/llvm-project] d1a339: [Driver][ARM] Disable unsupported features when no...

Victor Campos via All-commits all-commits at lists.llvm.org
Wed Jul 29 06:20:05 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d1a3396bfbc6fd6df927f2864c18d86e742cabff
      https://github.com/llvm/llvm-project/commit/d1a3396bfbc6fd6df927f2864c18d86e742cabff
  Author: Victor Campos <victor.campos at arm.com>
  Date:   2020-07-29 (Wed, 29 Jul 2020)

  Changed paths:
    M clang/lib/Driver/ToolChains/Arch/ARM.cpp
    M clang/test/CodeGen/arm-bf16-softfloat.c
    A clang/test/Driver/arm-nofp-disabled-features.c
    M llvm/include/llvm/Support/ARMTargetParser.h
    M llvm/lib/Support/ARMTargetParser.cpp
    M llvm/unittests/Support/TargetParserTest.cpp

  Log Message:
  -----------
  [Driver][ARM] Disable unsupported features when nofp arch extension is used

A list of target features is disabled when there is no hardware
floating-point support. This is the case when one of the following
options is passed to clang:

 - -mfloat-abi=soft
 - -mfpu=none

This option list is missing, however, the extension "+nofp" that can be
specified in -march flags, such as "-march=armv8-a+nofp".

This patch also disables unsupported target features when nofp is passed
to -march.

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




More information about the All-commits mailing list