repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git]
/
llvm
/
test
/
tools
/
UpdateTestChecks
/
update_test_checks
/
Inputs
/
global_regex.ll
blob
ccecb0d86df8023f519883dbfe4844e604e3732d
1
; RUN: opt < %s -S | FileCheck %s
2
3
@Bar = global i32 0
4
@OnlyFoo = global i32 1
5
@Baz = global i32 2
6
7
define i32 @t() {
8
%v1 = load i32, ptr @Bar
9
%v2 = load i32, ptr @OnlyFoo
10
%v3 = load i32, ptr @Baz
11
%a1 = add i32 %v1, %v2
12
%a2 = add i32 %a1, %v3
13
ret i32 %a2
14
}
15