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)
commitf02c92489abc5f9eff3397c8916955cb0fb6a7ef
tree10979b8ac28da5eabca32c9c53771ac34385aeec
parent1620a69fe8c6ba797dcaec4078ad25cd66047093
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
llvm-svn: 223218
llvm/lib/Target/ARM/ARMAsmPrinter.cpp
llvm/test/CodeGen/ARM/build-attributes.ll