2008-02-19 02:44:26 +01:00
|
|
|
; RUN: llvm-as < %s | llvm-dis | llvm-as > /dev/null
|
2004-08-20 10:34:27 +02:00
|
|
|
|
2008-02-19 02:44:26 +01:00
|
|
|
%v4f = type <4 x float>
|
|
|
|
@foo = external global %v4f ; <%v4f*> [#uses=1]
|
|
|
|
@bar = external global %v4f ; <%v4f*> [#uses=1]
|
2004-08-20 10:34:27 +02:00
|
|
|
|
2008-02-19 02:44:26 +01:00
|
|
|
define void @main() {
|
|
|
|
br label %A
|
2004-08-20 10:34:27 +02:00
|
|
|
|
2008-02-19 02:44:26 +01:00
|
|
|
C: ; preds = %B
|
|
|
|
store %v4f %t2, %v4f* @bar
|
|
|
|
ret void
|
2004-08-20 10:34:27 +02:00
|
|
|
|
2008-02-19 02:44:26 +01:00
|
|
|
B: ; preds = %A
|
2009-06-05 00:49:04 +02:00
|
|
|
%t2 = fadd %v4f %t0, %t0 ; <%v4f> [#uses=1]
|
2008-02-19 02:44:26 +01:00
|
|
|
br label %C
|
2004-08-20 10:34:27 +02:00
|
|
|
|
2008-02-19 02:44:26 +01:00
|
|
|
A: ; preds = %0
|
|
|
|
%t0 = load %v4f* @foo ; <%v4f> [#uses=2]
|
|
|
|
br label %B
|
2004-08-20 10:34:27 +02:00
|
|
|
}
|
2008-02-19 02:44:26 +01:00
|
|
|
|