diff options
author | Dale Johannesen <dalej@apple.com> | 2007-09-05 17:50:36 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2007-09-05 17:50:36 +0000 |
commit | c2ec2baf3d4de95695e695ee404efc251efba6d4 (patch) | |
tree | 24eff24c3171c525448ce5326e6e5c549e4525dc /test/Transforms | |
parent | d4af306aec6b37abf6d5509e107f277b681ec83d (diff) | |
download | llvm-c2ec2baf3d4de95695e695ee404efc251efba6d4.tar.gz llvm-c2ec2baf3d4de95695e695ee404efc251efba6d4.tar.bz2 llvm-c2ec2baf3d4de95695e695ee404efc251efba6d4.tar.xz |
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
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/ConstProp/remtest.ll | 4 | ||||
-rw-r--r-- | test/Transforms/InstCombine/load.ll | 2 | ||||
-rw-r--r-- | test/Transforms/SCCP/apint-load.ll | 2 | ||||
-rw-r--r-- | test/Transforms/SCCP/loadtest.ll | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/test/Transforms/ConstProp/remtest.ll b/test/Transforms/ConstProp/remtest.ll index 905f4b724f..fd56012310 100644 --- a/test/Transforms/ConstProp/remtest.ll +++ b/test/Transforms/ConstProp/remtest.ll @@ -13,11 +13,11 @@ int %test2() { } float %test3() { - %R = rem float 12.45, 123.213 + %R = rem float 0x4028E66660000000, 0x405ECDA1C0000000 ret float %R } double %test4() { - %R = rem double 312.20213123, 12.3333412 + %R = rem double 0x4073833BEE07AFF8, 0x4028AAABB2A0D19C ret double %R } diff --git a/test/Transforms/InstCombine/load.ll b/test/Transforms/InstCombine/load.ll index 1bb7a5f736..5c7d580a46 100644 --- a/test/Transforms/InstCombine/load.ll +++ b/test/Transforms/InstCombine/load.ll @@ -5,7 +5,7 @@ %X = constant int 42 %X2 = constant int 47 %Y = constant [2 x { int, float }] [ { int, float } { int 12, float 1.0 }, - { int, float } { int 37, float 1.2312 } ] + { int, float } { int 37, float 0x3FF3B2FEC0000000 } ] %Z = constant [2 x { int, float }] zeroinitializer int %test1() { diff --git a/test/Transforms/SCCP/apint-load.ll b/test/Transforms/SCCP/apint-load.ll index b353a0b09a..96509714bb 100644 --- a/test/Transforms/SCCP/apint-load.ll +++ b/test/Transforms/SCCP/apint-load.ll @@ -5,7 +5,7 @@ @X = constant i212 42 @Y = constant [2 x { i212, float }] [ { i212, float } { i212 12, float 1.0 }, - { i212, float } { i212 37, float 1.2312 } ] + { i212, float } { i212 37, float 0x3FF3B2FEC0000000 } ] define i212 @test1() { %B = load i212* @X ret i212 %B diff --git a/test/Transforms/SCCP/loadtest.ll b/test/Transforms/SCCP/loadtest.ll index 99da7285cf..58a9ff6a28 100644 --- a/test/Transforms/SCCP/loadtest.ll +++ b/test/Transforms/SCCP/loadtest.ll @@ -5,7 +5,7 @@ %X = constant int 42 %Y = constant [2 x { int, float }] [ { int, float } { int 12, float 1.0 }, - { int, float } { int 37, float 1.2312 } ] + { int, float } { int 37, float 0x3FF3B2FEC0000000 } ] int %test1() { %B = load int* %X ret int %B |