Add a few test cases to ensure the bitcode reader is backward compatible with
authorChad Rosier <mcrosier@apple.com>
Tue, 25 Oct 2011 20:33:19 +0000 (20:33 +0000)
committerChad Rosier <mcrosier@apple.com>
Tue, 25 Oct 2011 20:33:19 +0000 (20:33 +0000)
LLVM 2.9.  My understanding is that we plan to maintain compatibility with 2.9
until the 3.1 release.  At that time we can generate new test cases using LLVM
3.0.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142958 91177308-0d34-0410-b5e6-96231b3b80d8

test/Bitcode/fbench-llvm-2.9.ll [new file with mode: 0644]
test/Bitcode/fbench-llvm-2.9.ll.bc [new file with mode: 0644]
test/Bitcode/spirit-llvm-2.9.ll [new file with mode: 0644]
test/Bitcode/spirit-llvm-2.9.ll.bc [new file with mode: 0644]

diff --git a/test/Bitcode/fbench-llvm-2.9.ll b/test/Bitcode/fbench-llvm-2.9.ll
new file mode 100644 (file)
index 0000000..5887691
--- /dev/null
@@ -0,0 +1,5 @@
+; This isn't really an assembly file. It just runs the test on the bitcode to 
+; ensure bitcode file backward compatibility.  No need for FileCheck as the 
+; BitcodeReader will fail with an assert if broken. This test case was 
+; generated using a clang binary, based on LLVM 2.9, downloaded from llvm.org.
+; RUN: llvm-dis < %s.bc > /dev/null
diff --git a/test/Bitcode/fbench-llvm-2.9.ll.bc b/test/Bitcode/fbench-llvm-2.9.ll.bc
new file mode 100644 (file)
index 0000000..d2ebbe5
Binary files /dev/null and b/test/Bitcode/fbench-llvm-2.9.ll.bc differ
diff --git a/test/Bitcode/spirit-llvm-2.9.ll b/test/Bitcode/spirit-llvm-2.9.ll
new file mode 100644 (file)
index 0000000..5887691
--- /dev/null
@@ -0,0 +1,5 @@
+; This isn't really an assembly file. It just runs the test on the bitcode to 
+; ensure bitcode file backward compatibility.  No need for FileCheck as the 
+; BitcodeReader will fail with an assert if broken. This test case was 
+; generated using a clang binary, based on LLVM 2.9, downloaded from llvm.org.
+; RUN: llvm-dis < %s.bc > /dev/null
diff --git a/test/Bitcode/spirit-llvm-2.9.ll.bc b/test/Bitcode/spirit-llvm-2.9.ll.bc
new file mode 100644 (file)
index 0000000..bf8cf49
Binary files /dev/null and b/test/Bitcode/spirit-llvm-2.9.ll.bc differ