summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/2002-04-07-InfConstant.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Assembler/2002-04-07-InfConstant.ll')
-rw-r--r--llvm/test/Assembler/2002-04-07-InfConstant.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/Assembler/2002-04-07-InfConstant.ll b/llvm/test/Assembler/2002-04-07-InfConstant.ll
new file mode 100644
index 00000000000..06e649e5c12
--- /dev/null
+++ b/llvm/test/Assembler/2002-04-07-InfConstant.ll
@@ -0,0 +1,9 @@
+; The output formater prints out 1.0e100 as Inf!
+;
+; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis
+
+define float @test() {
+ %tmp = mul float 0x7FF0000000000000, 1.000000e+01 ; <float> [#uses=1]
+ ret float %tmp
+}
+
OpenPOWER on IntegriCloud