aboutsummaryrefslogtreecommitdiffstats
path: root/test/Feature
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2007-09-05 17:50:36 +0000
committerDale Johannesen <dalej@apple.com>2007-09-05 17:50:36 +0000
commitc2ec2baf3d4de95695e695ee404efc251efba6d4 (patch)
tree24eff24c3171c525448ce5326e6e5c549e4525dc /test/Feature
parentd4af306aec6b37abf6d5509e107f277b681ec83d (diff)
downloadexternal_llvm-c2ec2baf3d4de95695e695ee404efc251efba6d4.zip
external_llvm-c2ec2baf3d4de95695e695ee404efc251efba6d4.tar.gz
external_llvm-c2ec2baf3d4de95695e695ee404efc251efba6d4.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/Feature')
-rw-r--r--test/Feature/fold-fpcast.ll4
-rw-r--r--test/Feature/weirdnames.ll2
2 files changed, 3 insertions, 3 deletions
diff --git a/test/Feature/fold-fpcast.ll b/test/Feature/fold-fpcast.ll
index 65759b5..66e972b 100644
--- a/test/Feature/fold-fpcast.ll
+++ b/test/Feature/fold-fpcast.ll
@@ -1,7 +1,7 @@
; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | not grep bitcast
int %test1() {
- ret int bitcast(float 3.7 to int)
+ ret int bitcast(float 0x400D9999A0000000 to int)
}
float %test2() {
@@ -9,7 +9,7 @@ float %test2() {
}
long %test3() {
- ret long bitcast (double 3.1415926 to long)
+ ret long bitcast (double 0x400921FB4D12D84A to long)
}
double %test4() {
diff --git a/test/Feature/weirdnames.ll b/test/Feature/weirdnames.ll
index bf143c3..e579758 100644
--- a/test/Feature/weirdnames.ll
+++ b/test/Feature/weirdnames.ll
@@ -7,4 +7,4 @@
"&^ " = type { int }
"%.*+ foo" = global "&^ " { int 5 }
"0" = global float 0.0 ; This CANNOT be %0
-"\03foo" = global float 0.1 ; Make sure funny char gets round trip
+"\03foo" = global float 0x3FB99999A0000000 ; Make sure funny char gets round trip