Fix a bug in GVN that Duncan noticed, where we potentially need to insert a
[oota-llvm.git] / test / Assembler / 2002-04-07-InfConstant.llx
index 81ac678c429917fee6c594b64acbf1c2e46fa8c6..06e649e5c12c1020d766e22ef10f48d5df696895 100644 (file)
@@ -1,11 +1,9 @@
 ; The output formater prints out 1.0e100 as Inf!
 ;
-; RUN: as < %s | dis | as | dis
+; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis
 
-implementation
+define float @test() {
+        %tmp = mul float 0x7FF0000000000000, 1.000000e+01               ; <float> [#uses=1]
+        ret float %tmp
+}
 
-float "test"()
-begin
-       %tmp = mul float 1.0e100, 1.0e1
-       ret float %tmp
-end