diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-02-05 19:19:01 -0500 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-02-05 19:19:01 -0500 |
commit | 9cd40588fe14696350514f87944ddf6f9fd652d6 (patch) | |
tree | 901fb5796cea08ecbbd289d71a432dcc40ed2418 | |
parent | 13f89e4c79725d2b78db13d22283c10c0a0c2832 (diff) |
add testcase for odd large doubles
-rw-r--r-- | tests/cases/bigdouble.ll | 17 | ||||
-rw-r--r-- | tests/cases/bigdouble.txt | 1 |
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/cases/bigdouble.ll b/tests/cases/bigdouble.ll new file mode 100644 index 00000000..cd58c08b --- /dev/null +++ b/tests/cases/bigdouble.ll @@ -0,0 +1,17 @@ +; ModuleID = '/tmp/tmpijH2sB/a.out.bc' +target datalayout = "e-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-p:32:32:32-v128:32:32" +target triple = "le32-unknown-nacl" + +@.str = private unnamed_addr constant [4 x i8] c"%f\0A\00", align 1 + +; Function Attrs: nounwind +define i32 @main() #0 { + %1 = fmul double 0x370000000000000, 1.0e+300 + %2 = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), double %1) + ret i32 0 +} + +; Function Attrs: nounwind +declare i32 @printf(i8* nocapture, ...) #0 + +attributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf"="true" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" } diff --git a/tests/cases/bigdouble.txt b/tests/cases/bigdouble.txt new file mode 100644 index 00000000..689709cd --- /dev/null +++ b/tests/cases/bigdouble.txt @@ -0,0 +1 @@ +400833672.001795 |