summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/2002-04-07-InfConstant.llx
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Assembler/2002-04-07-InfConstant.llx')
-rw-r--r--llvm/test/Assembler/2002-04-07-InfConstant.llx11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/Assembler/2002-04-07-InfConstant.llx b/llvm/test/Assembler/2002-04-07-InfConstant.llx
new file mode 100644
index 00000000000..f1479eb4df2
--- /dev/null
+++ b/llvm/test/Assembler/2002-04-07-InfConstant.llx
@@ -0,0 +1,11 @@
+; The output formater prints out 1.0e100 as Inf!
+;
+; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | llvm-as | llvm-dis
+
+implementation
+
+float "test"()
+begin
+ %tmp = mul float 1.0e100, 1.0e1
+ ret float %tmp
+end
OpenPOWER on IntegriCloud