mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-14 09:25:25 +00:00
New testcase for the bug affecting 255.vortex in CBE mode.
llvm-svn: 18529
This commit is contained in:
parent
62fe4f4e16
commit
5db6fcf73f
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user