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)
commitc96e95c157f1f5a5755944804731a8ab07711672
tree926b2ab6c07fec97b5afca336b8e4f352b4ae893
parent8de6864146c36392caebe05ce099c439c0fc7320
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
llvm-svn: 223454
llvm/lib/Target/ARM/ARMAsmPrinter.cpp
llvm/test/CodeGen/ARM/build-attributes.ll