Fix cwriter to not output FP constants in ascii, output them in hex instead.
authorChris Lattner <sabre@nondot.org>
Fri, 20 Sep 2002 23:26:33 +0000 (23:26 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 20 Sep 2002 23:26:33 +0000 (23:26 +0000)
commitd1cf1b458a952e9d8a28ea50bef165eee093b569
treebd9b4f27c111d2c9cd92a52b2ce6c7e9c9c56812
parent1f8c4a17c1c1ea488eaa2bbd736e3ac9dae96c10
Fix cwriter to not output FP constants in ascii, output them in hex instead.
This fixes a number of FP precision problems, making the output of the
power benchmark closer to the right answer.

Unfortunately, this only addresses FP constants used directly in functions.
Constants referred to by global constants (such as an array of FP values)
aren't helped by this.  Until this happens power won't work.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3871 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/CBackend/CBackend.cpp
lib/Target/CBackend/Writer.cpp