repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Change tests from "opt %s" to "opt < %s" so that opt doesn't see the
[llvm/avr.git]
/
test
/
Transforms
/
InstCombine
/
odr-linkage.ll
blob
a64ef289a4b6553b9785434b35bf78b8b3f67145
1
; RUN: opt < %s -instcombine -S | grep {ret i32 10}
2
3
@g1 = available_externally constant i32 1
4
@g2 = linkonce_odr constant i32 2
5
@g3 = weak_odr constant i32 3
6
@g4 = internal constant i32 4
7
8
define i32 @test() {
9
%A = load i32* @g1
10
%B = load i32* @g2
11
%C = load i32* @g3
12
%D = load i32* @g4
13
14
%a = add i32 %A, %B
15
%b = add i32 %a, %C
16
%c = add i32 %b, %D
17
ret i32 %c
18
}
19