[llvm-commits] CVS: llvm/test/Regression/Assembler/2004-12-05-LocalGlobalSymtabConflict.ll

Chris Lattner lattner at cs.uiuc.edu
Sat Dec 4 22:18:49 PST 2004



Changes in directory llvm/test/Regression/Assembler:

2004-12-05-LocalGlobalSymtabConflict.ll added (r1.1)
---
Log message:

New testcase for the bug affecting 255.vortex in CBE mode.


---
Diffs of the changes:  (+20 -0)

Index: llvm/test/Regression/Assembler/2004-12-05-LocalGlobalSymtabConflict.ll
diff -c /dev/null llvm/test/Regression/Assembler/2004-12-05-LocalGlobalSymtabConflict.ll:1.1
*** /dev/null	Sun Dec  5 00:18:45 2004
--- llvm/test/Regression/Assembler/2004-12-05-LocalGlobalSymtabConflict.ll	Sun Dec  5 00:18:35 2004
***************
*** 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
+ }
+ 






More information about the llvm-commits mailing list