Emit ABI_FP_rounding attribute.
authorCharlie Turner <charlie.turner@arm.com>
Wed, 3 Dec 2014 08:12:26 +0000 (08:12 +0000)
committerCharlie Turner <charlie.turner@arm.com>
Wed, 3 Dec 2014 08:12:26 +0000 (08:12 +0000)
commit10cae8e35228ddc72f6f3f79dcc6b891b9ee2042
treec295e423acdf56e8b1627608179de7f422355638
parent78f9ab5f7c49b8f305d982988ac078f67eacb66b
Emit ABI_FP_rounding attribute.

LLVM understands a -enable-sign-dependent-rounding-fp-math codegen option. When
the user has specified this option, the Tag_ABI_FP_rounding attribute should be
emitted with value 1. This option currently does not appear to disable
transformations and optimizations that assume default floating point rounding
behavior, AFAICT, but the intention should be recorded in the build attributes,
regardless of what the compiler actually does with the intention.

Change-Id: If838578df3dc652b6f2796b8d152545674bcb30e

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