2006-12-03 04:34:08 +08:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
|
2004-11-07 06:07:09 +08:00
|
|
|
|
2002-08-16 01:04:40 +08:00
|
|
|
%.LC0 = internal global [12 x sbyte] c"hello world\00"
|
|
|
|
|
|
|
|
implementation ; Functions:
|
|
|
|
|
|
|
|
sbyte* %test() {
|
|
|
|
br label %BB1
|
|
|
|
|
|
|
|
BB1: ;[#uses=2]
|
2003-03-07 03:59:08 +08:00
|
|
|
%ret = phi sbyte* [ getelementptr ([12 x sbyte]* %.LC0, long 0, long 0), %0 ], [ null, %BB2 ]
|
2002-08-16 01:04:40 +08:00
|
|
|
ret sbyte* %ret
|
|
|
|
|
|
|
|
BB2:
|
|
|
|
br label %BB1
|
|
|
|
}
|
|
|
|
|