diff options
author | Charlie Turner <charlie.turner@arm.com> | 2014-12-05 08:22:47 +0000 |
---|---|---|
committer | Charlie Turner <charlie.turner@arm.com> | 2014-12-05 08:22:47 +0000 |
commit | c96e95c157f1f5a5755944804731a8ab07711672 (patch) | |
tree | 926b2ab6c07fec97b5afca336b8e4f352b4ae893 /llvm/lib/Target/ARM/ARMAsmPrinter.cpp | |
parent | 8de6864146c36392caebe05ce099c439c0fc7320 (diff) | |
download | bcm5719-llvm-c96e95c157f1f5a5755944804731a8ab07711672.tar.gz bcm5719-llvm-c96e95c157f1f5a5755944804731a8ab07711672.zip |
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
Diffstat (limited to 'llvm/lib/Target/ARM/ARMAsmPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMAsmPrinter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp index 99e65037260..90f16f58afc 100644 --- a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp +++ b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp @@ -747,6 +747,8 @@ void ARMAsmPrinter::emitAttributes() { // absence of its emission implies zero). } + // TM.Options.NoInfsFPMath && TM.Options.NoNaNsFPMath is the + // equivalent of GCC's -ffinite-math-only flag. if (TM.Options.NoInfsFPMath && TM.Options.NoNaNsFPMath) ATS.emitAttribute(ARMBuildAttrs::ABI_FP_number_model, ARMBuildAttrs::Allowed); |