aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2013-07-24 01:26:37 +0000
committerManman Ren <manman.ren@gmail.com>2013-07-24 01:26:37 +0000
commit3894b572287f8047c638e826311ea17d2cba1e8d (patch)
tree2049dfe723238ec0e44ec4571c7307dc568c798f /test/Assembler
parent2d3adad723653e4acd3d1b3f7fcfd2691acccb73 (diff)
downloadexternal_llvm-3894b572287f8047c638e826311ea17d2cba1e8d.zip
external_llvm-3894b572287f8047c638e826311ea17d2cba1e8d.tar.gz
external_llvm-3894b572287f8047c638e826311ea17d2cba1e8d.tar.bz2
Update testing cases to make them pass debug info verification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187016 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler')
-rw-r--r--test/Assembler/functionlocal-metadata.ll16
1 files changed, 9 insertions, 7 deletions
diff --git a/test/Assembler/functionlocal-metadata.ll b/test/Assembler/functionlocal-metadata.ll
index 5b81574..0f0ab4c 100644
--- a/test/Assembler/functionlocal-metadata.ll
+++ b/test/Assembler/functionlocal-metadata.ll
@@ -1,9 +1,9 @@
-; RUN: llvm-as -disable-debug-info-verifier < %s | llvm-dis | FileCheck %s
+; RUN: llvm-as < %s | llvm-dis | FileCheck %s
define void @Foo(i32 %a, i32 %b) {
entry:
- call void @llvm.dbg.value(metadata !{ i32* %1 }, i64 16, metadata !"bar")
-; CHECK: call void @llvm.dbg.value(metadata !{i32* %1}, i64 16, metadata !"bar")
+ call void @llvm.dbg.value(metadata !{ i32* %1 }, i64 16, metadata !2)
+; CHECK: call void @llvm.dbg.value(metadata !{i32* %1}, i64 16, metadata !2)
%0 = add i32 %a, 1 ; <i32> [#uses=1]
%two = add i32 %b, %0 ; <i32> [#uses=0]
%1 = alloca i32 ; <i32*> [#uses=1]
@@ -25,10 +25,10 @@ entry:
; CHECK: metadata !{i32 %a}, i64 0, metadata !1
call void @llvm.dbg.value(metadata !{ i32 %0 }, i64 25, metadata !0)
; CHECK: 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 !"foo", i64 12, metadata !"bar")
-; CHECK: metadata !"foo", i64 12, metadata !"bar"
+ call void @llvm.dbg.value(metadata !{ i32* %1 }, i64 16, metadata !3)
+; CHECK: call void @llvm.dbg.value(metadata !{i32* %1}, i64 16, metadata !3)
+ call void @llvm.dbg.value(metadata !3, i64 12, metadata !2)
+; CHECK: metadata !3, i64 12, metadata !2
ret void, !foo !0, !bar !1
; CHECK: ret void, !foo !0, !bar !1
@@ -36,6 +36,8 @@ entry:
!0 = metadata !{i32 662302, i32 26, metadata !1, null}
!1 = metadata !{i32 4, metadata !"foo"}
+!2 = metadata !{metadata !"bar"}
+!3 = metadata !{metadata !"foo"}
declare void @llvm.dbg.declare(metadata, metadata) nounwind readnone
declare void @llvm.dbg.value(metadata, i64, metadata) nounwind readnone