diff options
author | Victor Hernandez <vhernandez@apple.com> | 2010-01-14 02:12:41 +0000 |
---|---|---|
committer | Victor Hernandez <vhernandez@apple.com> | 2010-01-14 02:12:41 +0000 |
commit | b2eb48180af40725b85c673cbdaeefec98894c16 (patch) | |
tree | df09f3004084d938f5b91f28490badcc6e378840 /test/Assembler | |
parent | ac260e1b04043efe54dbd02a33808848862959c1 (diff) | |
download | external_llvm-b2eb48180af40725b85c673cbdaeefec98894c16.zip external_llvm-b2eb48180af40725b85c673cbdaeefec98894c16.tar.gz external_llvm-b2eb48180af40725b85c673cbdaeefec98894c16.tar.bz2 |
Extend testcase to also test llvm.dbg.value intrinsic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93408 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler')
-rw-r--r-- | test/Assembler/functionlocal-metadata.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Assembler/functionlocal-metadata.ll b/test/Assembler/functionlocal-metadata.ll index dd3d56a..9d83304 100644 --- a/test/Assembler/functionlocal-metadata.ll +++ b/test/Assembler/functionlocal-metadata.ll @@ -17,6 +17,12 @@ entry: ; CHECK: metadata !{i32 %a, metadata !"foo"} call void @llvm.dbg.declare({ }* %three, metadata !{metadata !0, i32 %two}) + call void @llvm.dbg.value(metadata !{ i32 %a }, i64 0, metadata !1) + call void @llvm.dbg.value(metadata !{ i32 %0 }, i64 25, metadata !0) + call void @llvm.dbg.value(metadata !{ i32* %1 }, i64 16, metadata !"foo") +; CHECK: call void @llvm.dbg.value(metadata !{i32* %1}, i64 16, metadata !"foo") + call void @llvm.dbg.value(metadata !{ { }* %three }, i64 12, metadata !"bar") + ret void, !foo !0, !bar !1 ; CHECK: ret void, !foo !0, !bar !1 } @@ -25,6 +31,7 @@ entry: !1 = metadata !{i32 4, metadata !"foo"} declare void @llvm.dbg.declare({ }*, metadata) nounwind readnone +declare void @llvm.dbg.value(metadata, i64, metadata) nounwind readnone !foo = !{ !0 } !bar = !{ !1 } |