projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add the SCCP regression tests for APInt expressions. These test cases
[oota-llvm.git]
/
test
/
Transforms
/
SCCP
/
apint-ipsccp3.ll
1
; RUN: llvm-as < %s | opt -ipsccp | llvm-dis -o /dev/null -f &&
2
; RUN: llvm-as < %s | opt -ipsccp | llvm-dis | not grep global
3
4
@G = internal global i66 undef
5
6
7
8
define void @foo() {
9
%X = load i66* @G
10
store i66 %X, i66* @G
11
ret void
12
}
13
14
define i66 @bar() {
15
%V = load i66* @G
16
%C = icmp eq i66 %V, 17
17
br i1 %C, label %T, label %F
18
T:
19
store i66 17, i66* @G
20
ret i66 %V
21
F:
22
store i66 123, i66* @G
23
ret i66 0
24
}