[llvm-commits] CVS: llvm/test/Regression/Assembler/2004-12-06-ConstantFloatRange.ll
Reid Spencer
reid at x10sys.com
Mon Dec 6 13:58:10 PST 2004
Changes in directory llvm/test/Regression/Assembler:
2004-12-06-ConstantFloatRange.ll added (r1.1)
---
Log message:
Test case for PR409: http://llvm.cs.uiuc.edu/PR409 :
Make sure that floating point constant values outside the range of a float
cannot be assigned to a constant.
---
Diffs of the changes: (+10 -0)
Index: llvm/test/Regression/Assembler/2004-12-06-ConstantFloatRange.ll
diff -c /dev/null llvm/test/Regression/Assembler/2004-12-06-ConstantFloatRange.ll:1.1
*** /dev/null Mon Dec 6 15:58:09 2004
--- llvm/test/Regression/Assembler/2004-12-06-ConstantFloatRange.ll Mon Dec 6 15:57:59 2004
***************
*** 0 ****
--- 1,10 ----
+ ; RUN: llvm-as %s -o /dev/null 2>&1 | grep "constant invalid for type"
+
+ ; make sure that 'float' values are in range
+
+ %D1 = constant double 3.40282347e+39
+ %D2 = constant double -3.40282347e+39
+ %F1 = constant float 3.40282346e+38
+ %F2 = constant float -3.40282346e+38
+ %D1 = constant float 3.40282347e+39
+ %D2 = constant float -3.40282347e+39
More information about the llvm-commits
mailing list