From c2ec2baf3d4de95695e695ee404efc251efba6d4 Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Wed, 5 Sep 2007 17:50:36 +0000 Subject: 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 --- test/Integer/BitCast.ll | 4 ++-- test/Integer/fold-fpcast_bt.ll | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'test/Integer') diff --git a/test/Integer/BitCast.ll b/test/Integer/BitCast.ll index c589ff0766..0bef0230e9 100644 --- a/test/Integer/BitCast.ll +++ b/test/Integer/BitCast.ll @@ -14,10 +14,10 @@ begin %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 c7e31b992c..8e5f8386d7 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 float @test2() { } 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 double @test4() { } 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 float @test6() { } define i64 @test7() { - ret i64 bitcast (double 3.1415926 to i64) + ret i64 bitcast (double 0x400921FB4D12D84A to i64) } define double @test8() { -- cgit v1.2.3