llvm-project
21 строка · 551.0 Байт
1; RUN: llvm-as < %s | llvm-dis | llvm-as > /dev/null
2
3%v4f = type <4 x float>
4@foo = external global %v4f ; <ptr> [#uses=1]
5@bar = external global %v4f ; <ptr> [#uses=1]
6
7define void @main() {
8br label %A
9
10C: ; preds = %B
11store %v4f %t2, ptr @bar
12ret void
13
14B: ; preds = %A
15%t2 = fadd %v4f %t0, %t0 ; <%v4f> [#uses=1]
16br label %C
17
18A: ; preds = %0
19%t0 = load %v4f, ptr @foo ; <%v4f> [#uses=2]
20br label %B
21}
22
23