llvm-6502/test/Assembler/2004-12-06-ConstantFloatRange.ll
Reid Spencer 84c744fe58 Fix PR409:
Implement the suggested check to ensure that out-of-range float constants
don't get accepted by LLVM accidentally. Adjust the supporting test cases
as well.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24963 91177308-0d34-0410-b5e6-96231b3b80d8
2005-12-22 21:07:29 +00:00

13 lines
372 B
LLVM

; RUN: llvm-as %s -o /dev/null 2>&1 | grep "constant invalid for type"
;; This is a testcase for PR409
; 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