mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-05 18:37:17 +00:00
f2f6ce65b7
input filename so that opt doesn't print the input filename in the output so that grep lines in the tests don't unintentionally match strings in the input filename. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81537 91177308-0d34-0410-b5e6-96231b3b80d8
23 lines
431 B
LLVM
23 lines
431 B
LLVM
; RUN: opt < %s -ipsccp -S | not grep global
|
|
|
|
@G = internal global i32 undef ; <i32*> [#uses=5]
|
|
|
|
define void @foo() {
|
|
%X = load i32* @G ; <i32> [#uses=1]
|
|
store i32 %X, i32* @G
|
|
ret void
|
|
}
|
|
|
|
define i32 @bar() {
|
|
%V = load i32* @G ; <i32> [#uses=2]
|
|
%C = icmp eq i32 %V, 17 ; <i1> [#uses=1]
|
|
br i1 %C, label %T, label %F
|
|
T: ; preds = %0
|
|
store i32 17, i32* @G
|
|
ret i32 %V
|
|
F: ; preds = %0
|
|
store i32 123, i32* @G
|
|
ret i32 0
|
|
}
|
|
|