mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 14:46:53 +00:00
69ccadd753
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32115 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
361 B
LLVM
24 lines
361 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | opt -ipsccp | llvm-dis | not grep global
|
|
|
|
%G = internal global int undef
|
|
|
|
implementation
|
|
|
|
void %foo() {
|
|
%X = load int* %G
|
|
store int %X, int* %G
|
|
ret void
|
|
}
|
|
|
|
int %bar() {
|
|
%V = load int* %G
|
|
%C = seteq int %V, 17
|
|
br bool %C, label %T, label %F
|
|
T:
|
|
store int 17, int* %G
|
|
ret int %V
|
|
F:
|
|
store int 123, int* %G
|
|
ret int 0
|
|
}
|