diff options
Diffstat (limited to 'tests/cases/bigdouble.ll')
-rw-r--r-- | tests/cases/bigdouble.ll | 17 |
1 files changed, 17 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" } |