summaryrefslogtreecommitdiffstats
path: root/llvm/test/Regression/Verifier/2004-01-22-FloatNormalization.ll
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-12-22 21:07:29 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-12-22 21:07:29 +0000
commit8f8124edaa822d8ddf19aa3ad3455bd5737487b7 (patch)
tree3131ed0c0895327b1941afdd9ead870f40b82e5b /llvm/test/Regression/Verifier/2004-01-22-FloatNormalization.ll
parentd834d495b2e886169967dee509ecb860ee1fd236 (diff)
downloadbcm5719-llvm-8f8124edaa822d8ddf19aa3ad3455bd5737487b7.tar.gz
bcm5719-llvm-8f8124edaa822d8ddf19aa3ad3455bd5737487b7.zip
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. llvm-svn: 24963
Diffstat (limited to 'llvm/test/Regression/Verifier/2004-01-22-FloatNormalization.ll')
-rw-r--r--llvm/test/Regression/Verifier/2004-01-22-FloatNormalization.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/Regression/Verifier/2004-01-22-FloatNormalization.ll b/llvm/test/Regression/Verifier/2004-01-22-FloatNormalization.ll
new file mode 100644
index 00000000000..8fbfe194277
--- /dev/null
+++ b/llvm/test/Regression/Verifier/2004-01-22-FloatNormalization.ll
@@ -0,0 +1,6 @@
+; RUN: llvm-as < %s -o /dev/null -f
+; XFAIL: *
+
+; make sure that invalid 'float' values are caught.
+
+global float 0x1
OpenPOWER on IntegriCloud