mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-28 22:42:52 +01:00
c33e32e865
Make sure that floating point constant values outside the range of a float cannot be assigned to a constant. llvm-svn: 18582
11 lines
339 B
LLVM
11 lines
339 B
LLVM
; 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
|