From 8f8124edaa822d8ddf19aa3ad3455bd5737487b7 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Thu, 22 Dec 2005 21:07:29 +0000 Subject: 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 --- llvm/test/Regression/Verifier/2004-01-22-FloatNormalization.ll | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 llvm/test/Regression/Verifier/2004-01-22-FloatNormalization.ll (limited to 'llvm/test/Regression/Verifier/2004-01-22-FloatNormalization.ll') 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 -- cgit v1.2.3