summaryrefslogtreecommitdiff
path: root/test/Assembler
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-12-05 06:18:35 +0000
committerChris Lattner <sabre@nondot.org>2004-12-05 06:18:35 +0000
commitc2e63a2d9388f373e879edaacf8fab30f4a128d1 (patch)
tree8691b393f15d29b3b66455a144abae962efa0b44 /test/Assembler
parent597848532473e3c9f59548c21ad940974225b8e6 (diff)
downloadllvm-c2e63a2d9388f373e879edaacf8fab30f4a128d1.tar.gz
llvm-c2e63a2d9388f373e879edaacf8fab30f4a128d1.tar.bz2
llvm-c2e63a2d9388f373e879edaacf8fab30f4a128d1.tar.xz
New testcase for the bug affecting 255.vortex in CBE mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18529 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler')
-rw-r--r--test/Assembler/2004-12-05-LocalGlobalSymtabConflict.ll20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/Assembler/2004-12-05-LocalGlobalSymtabConflict.ll b/test/Assembler/2004-12-05-LocalGlobalSymtabConflict.ll
new file mode 100644
index 0000000000..357f555529
--- /dev/null
+++ b/test/Assembler/2004-12-05-LocalGlobalSymtabConflict.ll
@@ -0,0 +1,20 @@
+; RUN: llvm-as < %s | opt -inline | llvm-dis | llvm-as | lli
+
+; In this testcase, %bar stores to the global G. Make sure that inlining does
+; not cause it to store to the G in main instead.
+
+%G = global int 7
+
+int %main() {
+ %G = alloca int
+ store int 0, int* %G
+ call void %bar()
+ %RV = load int* %G
+ ret int %RV
+}
+
+internal void %bar() {
+ store int 123, int* %G
+ ret void
+}
+