New testcase that ipsccp should handle.

llvm-svn: 18789
This commit is contained in:
Chris Lattner 2004-12-11 05:14:55 +00:00
parent a179968c4e
commit 01bd4624c4
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
; RUN: llvm-as < %s | 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
}