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 | d727a2b6422017a951e1e5d43b8b579a538d3ef5 (patch) | |
tree | 24eff24c3171c525448ce5326e6e5c549e4525dc /test/CodeGen/X86 | |
parent | ea5e9dee8697c1fb92e7bae88809e89235aba197 (diff) | |
download | external_llvm-d727a2b6422017a951e1e5d43b8b579a538d3ef5.zip external_llvm-d727a2b6422017a951e1e5d43b8b579a538d3ef5.tar.gz external_llvm-d727a2b6422017a951e1e5d43b8b579a538d3ef5.tar.bz2 |
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/CodeGen/X86')
-rw-r--r-- | test/CodeGen/X86/peep-vector-extract-insert.ll | 2 | ||||
-rw-r--r-- | test/CodeGen/X86/store-fp-constant.ll | 6 | ||||
-rw-r--r-- | test/CodeGen/X86/v4f32-immediate.ll | 2 | ||||
-rw-r--r-- | test/CodeGen/X86/vector.ll | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/test/CodeGen/X86/peep-vector-extract-insert.ll b/test/CodeGen/X86/peep-vector-extract-insert.ll index 764a8c4..77332d0 100644 --- a/test/CodeGen/X86/peep-vector-extract-insert.ll +++ b/test/CodeGen/X86/peep-vector-extract-insert.ll @@ -6,7 +6,7 @@ define float @foo(<4 x float> %a) { ret float %c } define float @bar(float %a) { - %b = insertelement <4 x float> <float 3.4, float 4.5, float 0.0, float 9.2>, float %a, i32 3 + %b = insertelement <4 x float> <float 0x400B333340000000, float 4.5, float 0.0, float 0x4022666660000000>, float %a, i32 3 %c = extractelement <4 x float> %b, i32 2 ret float %c } diff --git a/test/CodeGen/X86/store-fp-constant.ll b/test/CodeGen/X86/store-fp-constant.ll index 3a80080..80f4e67 100644 --- a/test/CodeGen/X86/store-fp-constant.ll +++ b/test/CodeGen/X86/store-fp-constant.ll @@ -12,9 +12,9 @@ declare void %extdouble(double) implementation void %testfloatstore() { - call void %extfloat(float 1234.4) - call void %extdouble(double 1234.4123) - store float 13.0123, float* %G + call void %extfloat(float 0x40934999A0000000) + call void %extdouble(double 0x409349A631F8A090) + store float 0x402A064C20000000, float* %G ret void } diff --git a/test/CodeGen/X86/v4f32-immediate.ll b/test/CodeGen/X86/v4f32-immediate.ll index 67b5e79..bd6045c 100644 --- a/test/CodeGen/X86/v4f32-immediate.ll +++ b/test/CodeGen/X86/v4f32-immediate.ll @@ -1,5 +1,5 @@ ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse | grep movaps define <4 x float> @foo() { - ret <4 x float> <float 3.223542354, float 2.3, float 1.2, float 0.1> + ret <4 x float> <float 0x4009C9D0A0000000, float 0x4002666660000000, float 0x3FF3333340000000, float 0x3FB99999A0000000> } diff --git a/test/CodeGen/X86/vector.ll b/test/CodeGen/X86/vector.ll index 348d4d6..4925ea8 100644 --- a/test/CodeGen/X86/vector.ll +++ b/test/CodeGen/X86/vector.ll @@ -65,7 +65,7 @@ void %test_div(%f8 *%P, %f8* %Q, %f8 *%S) { void %test_cst(%f4 *%P, %f4 *%S) { %p = load %f4* %P - %R = add %f4 %p, <float 0.1, float 1.0, float 2.0, float 4.5> + %R = add %f4 %p, <float 0x3FB99999A0000000, float 1.0, float 2.0, float 4.5> store %f4 %R, %f4 *%S ret void } |