diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-29 21:25:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-29 21:25:40 +0000 |
commit | 3f3a0f6b498e80ffaeb83f03c8697e5d54fd9337 (patch) | |
tree | b83efcda767c9783f32ab7fbbff46ccaf76e9a93 /test/Assembler | |
parent | 837eda93ee1d89689925e45e90c59cf948e531bb (diff) | |
download | external_llvm-3f3a0f6b498e80ffaeb83f03c8697e5d54fd9337.zip external_llvm-3f3a0f6b498e80ffaeb83f03c8697e5d54fd9337.tar.gz external_llvm-3f3a0f6b498e80ffaeb83f03c8697e5d54fd9337.tar.bz2 |
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
Diffstat (limited to 'test/Assembler')
-rw-r--r-- | test/Assembler/metadata.ll | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/Assembler/metadata.ll b/test/Assembler/metadata.ll index 5346d13..57e1dae 100644 --- a/test/Assembler/metadata.ll +++ b/test/Assembler/metadata.ll @@ -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} |