Add missing FP build attribute tests.
authorCharlie Turner <charlie.turner@arm.com>
Fri, 5 Dec 2014 08:22:47 +0000 (08:22 +0000)
committerCharlie Turner <charlie.turner@arm.com>
Fri, 5 Dec 2014 08:22:47 +0000 (08:22 +0000)
commit1610d6e8786fa417af1080c2bfb0d761d3738374
treefb73f011812ae94b7af8d75661ab6d82480f3c41
parent138d5bf371fd69644ab781220f45d4308d3fc83d
Add missing FP build attribute tests.

The test file test/CodeGen/ARM/build-attributes.ll was missing several
floating-point build attribute tests. The intention of this commit is that for
each CPU / architecture currently tested, there are now tests that make sure
the following attributes are sufficiently checked,

  * Tag_ABI_FP_rounding
  * Tag_ABI_FP_denormal
  * Tag_ABI_FP_exceptions
  * Tag_ABI_FP_user_exceptions
  * Tag_ABI_FP_number_model

Also in this commit, the -unsafe-fp-math flag has been augmented with the full
suite of flags Clang sends to LLVM when you pass -ffast-math to Clang. That is,
`-unsafe-fp-math' has been changed to `-enable-unsafe-fp-math -disable-fp-elim
-enable-no-infs-fp-math -enable-no-nans-fp-math -fp-contract=fast'

Change-Id: I35d766076bcbbf09021021c0a534bf8bf9a32dfc

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223454 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMAsmPrinter.cpp
test/CodeGen/ARM/build-attributes.ll