mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 04:29:21 +00:00
Test case for PR409:
Make sure that floating point constant values outside the range of a float cannot be assigned to a constant. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18582 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
06c2e66435
commit
66e10ab153
10
test/Assembler/2004-12-06-ConstantFloatRange.ll
Normal file
10
test/Assembler/2004-12-06-ConstantFloatRange.ll
Normal file
@ -0,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
|
Loading…
Reference in New Issue
Block a user