Skip to content

Commit a6086ef

Browse files
committed
New testcase for the bug affecting 255.vortex in CBE mode.
llvm-svn: 18529
1 parent cceae42 commit a6086ef

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
; RUN: llvm-as < %s | opt -inline | llvm-dis | llvm-as | lli
2+
3+
; In this testcase, %bar stores to the global G. Make sure that inlining does
4+
; not cause it to store to the G in main instead.
5+
6+
%G = global int 7
7+
8+
int %main() {
9+
%G = alloca int
10+
store int 0, int* %G
11+
call void %bar()
12+
%RV = load int* %G
13+
ret int %RV
14+
}
15+
16+
internal void %bar() {
17+
store int 123, int* %G
18+
ret void
19+
}
20+

0 commit comments

Comments
 (0)