]> granicus.if.org Git - clang/commit
Reapply r304929 [mips] Add runtime options to enable/disable madd/sub.fmt
authorPetar Jovanovic <petar.jovanovic@imgtec.com>
Wed, 7 Jun 2017 23:51:52 +0000 (23:51 +0000)
committerPetar Jovanovic <petar.jovanovic@imgtec.com>
Wed, 7 Jun 2017 23:51:52 +0000 (23:51 +0000)
commit23a6e4b63aba4ba1407afca8728e024ce066f2b9
treec1d7c85fdc26c71963fc2f6f323e75a0245bb445
parentce43b3d0fc30e1d4dc015dfba0bd44bb4c0a20e0
Reapply r304929 [mips] Add runtime options to enable/disable madd/sub.fmt

The test in r304929 broke multiple buildbots as it expected mips target to
be registered and available (which is not necessarily true). Updating the
test with this condition.

Original commit:

  [mips] Add runtime options to enable/disable madd.fmt and msub.fmt

  Add options to clang: -mmadd4 and -mno-madd4, use it to enable or disable
  generation of madd.fmt and similar instructions respectively, as per GCC.

  Patch by Stefan Maksimovic.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@304953 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Options.td
lib/Basic/Targets.cpp
lib/Driver/ToolChains/Arch/Mips.cpp
test/CodeGen/mips-madd4.c [new file with mode: 0644]
test/Preprocessor/init.c