Each instruction is allowed to have *multiple* different

metadata objects on them.  Though the entire compiler supports this,
the asmparser didn't.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92270 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2009-12-29 21:25:40 +00:00
parent 837eda93ee
commit 3f3a0f6b49
2 changed files with 29 additions and 19 deletions

View File

@@ -1,7 +1,8 @@
; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | grep {ret void, !foo !0}
; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | grep {ret void, !bar !1, !foo !0}
define void @test() {
ret void, !foo !0
;, !bar !1
add i32 2, 1, !bar !0
add i32 1, 2, !foo !1
ret void, !foo !0, !bar !1
}
!0 = metadata !{i32 662302, i32 26, metadata !1, null}