aboutsummaryrefslogtreecommitdiffstats
path: root/test/ExecutionEngine
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-15 22:36:55 +0000
committerChris Lattner <sabre@nondot.org>2003-08-15 22:36:55 +0000
commitf2d4916dc71d3c2ee8476efc41240fa486c0cdbb (patch)
treea336c3f7e60138d4a7b4fb0e6dbdbcfe48155503 /test/ExecutionEngine
parent53b99a0fe74b3cc272d7aad4d43a25f09c4979e4 (diff)
downloadexternal_llvm-f2d4916dc71d3c2ee8476efc41240fa486c0cdbb.zip
external_llvm-f2d4916dc71d3c2ee8476efc41240fa486c0cdbb.tar.gz
external_llvm-f2d4916dc71d3c2ee8476efc41240fa486c0cdbb.tar.bz2
New testcase identified by misha, distilled from the 'ls' program
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7909 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ExecutionEngine')
-rw-r--r--test/ExecutionEngine/2003-08-15-AllocaAssertion.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ExecutionEngine/2003-08-15-AllocaAssertion.ll b/test/ExecutionEngine/2003-08-15-AllocaAssertion.ll
new file mode 100644
index 0000000..35248d1
--- /dev/null
+++ b/test/ExecutionEngine/2003-08-15-AllocaAssertion.ll
@@ -0,0 +1,9 @@
+; This testcase failed to work because two variable sized allocas confused the
+; local register allocator.
+
+int %main(uint %X) {
+ %A = alloca uint, uint %X
+
+ %B = alloca float, uint %X
+ ret int 0
+}