aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/2004-12-06-ConstantFloatRange.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/2004-12-06-ConstantFloatRange.ll')
-rw-r--r--test/Assembler/2004-12-06-ConstantFloatRange.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Assembler/2004-12-06-ConstantFloatRange.ll b/test/Assembler/2004-12-06-ConstantFloatRange.ll
new file mode 100644
index 0000000..e7404d5
--- /dev/null
+++ b/test/Assembler/2004-12-06-ConstantFloatRange.ll
@@ -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