Testcases for bugfixes


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5123 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/X86/2002-12-23-SubProblem.llx b/test/CodeGen/X86/2002-12-23-SubProblem.llx
new file mode 100644
index 0000000..fce528e
--- /dev/null
+++ b/test/CodeGen/X86/2002-12-23-SubProblem.llx
@@ -0,0 +1,7 @@
+; RUN: as < %s | lli -force-interpreter=false -no-local-ra
+
+int %main(int %B) {
+	;%B = add int 0, 1
+	%R = sub int %B, 1  ; %r = 0
+	ret int %R
+}