Change all floating constants that are not exactly
representable to use hex format.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41722 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Integer/BitCast.ll b/test/Integer/BitCast.ll
index c589ff0..0bef023 100644
--- a/test/Integer/BitCast.ll
+++ b/test/Integer/BitCast.ll
@@ -14,10 +14,10 @@
         %t3 = zext i31 %i to i1280
         %t4 = sext i31 %i to i1280
 
-        %t5 = fptoui float 3.14159 to i31
+        %t5 = fptoui float 0x400921FA00000000 to i31
         %t6 = uitofp i31 %t5 to double
 
-        %t7 = fptosi double -1234.5678 to i28
+        %t7 = fptosi double 0xC0934A456D5CFAAD to i28
         %t8 = sitofp i8 -1 to double
         %t9 = uitofp i8 255 to double
         
diff --git a/test/Integer/fold-fpcast_bt.ll b/test/Integer/fold-fpcast_bt.ll
index c7e31b9..8e5f838 100644
--- a/test/Integer/fold-fpcast_bt.ll
+++ b/test/Integer/fold-fpcast_bt.ll
@@ -1,7 +1,7 @@
 ; RUN: llvm-as < %s | llvm-dis | not grep bitcast
 
 define i60 @test1() {
-   ret i60 fptoui(float 3.7 to i60)
+   ret i60 fptoui(float 0x400D9999A0000000 to i60)
 }
 
 define float @test2() {
@@ -9,7 +9,7 @@
 }
 
 define i64 @test3() {
-  ret i64 bitcast (double 3.1415926 to i64)
+  ret i64 bitcast (double 0x400921FB4D12D84A to i64)
 }
 
 define double @test4() {
@@ -17,7 +17,7 @@
 }
 
 define i30 @test5() {
-  ret i30 fptoui(float 3.7 to i30)
+  ret i30 fptoui(float 0x400D9999A0000000 to i30)
 }
 
 define float @test6() {
@@ -25,7 +25,7 @@
 }
 
 define i64 @test7() {
-  ret i64 bitcast (double 3.1415926 to i64)
+  ret i64 bitcast (double 0x400921FB4D12D84A to i64)
 }
 
 define double @test8() {