From: Ahmed Bougacha Date: Tue, 7 Mar 2017 20:34:13 +0000 (+0000) Subject: [GlobalISel] Add constant dbg.value translation tests. NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf71edc74d1047aef018f505a3e3e89c48553fcb;p=llvm [GlobalISel] Add constant dbg.value translation tests. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297199 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/AArch64/GlobalISel/debug-insts.ll b/test/CodeGen/AArch64/GlobalISel/debug-insts.ll index fcf17e2d4e0..ffd2c0c68b1 100644 --- a/test/CodeGen/AArch64/GlobalISel/debug-insts.ll +++ b/test/CodeGen/AArch64/GlobalISel/debug-insts.ll @@ -15,13 +15,17 @@ entry: ; CHECK-LABEL: name: debug_value ; CHECK: [[IN:%[0-9]+]](s32) = COPY %w0 -; CHECK: DBG_VALUE debug-use [[IN]](s32), debug-use _, !11, !12, debug-location !13 -; CHECK: DBG_VALUE debug-use %1(p0), debug-use _, !11, !15, debug-location !13 define void @debug_value(i32 %in) #0 !dbg !7 { %addr = alloca i32 +; CHECK: DBG_VALUE debug-use [[IN]](s32), debug-use _, !11, !12, debug-location !13 call void @llvm.dbg.value(metadata i32 %in, i64 0, metadata !11, metadata !12), !dbg !13 store i32 %in, i32* %addr +; CHECK: DBG_VALUE debug-use %1(p0), debug-use _, !11, !15, debug-location !13 call void @llvm.dbg.value(metadata i32* %addr, i64 0, metadata !11, metadata !15), !dbg !13 +; CHECK: DBG_VALUE 123, 0, !11, !12, debug-location !13 + call void @llvm.dbg.value(metadata i32 123, i64 0, metadata !11, metadata !12), !dbg !13 +; CHECK: DBG_VALUE float 1.000000e+00, 0, !11, !12, debug-location !13 + call void @llvm.dbg.value(metadata float 1.000000e+00, i64 0, metadata !11, metadata !12), !dbg !13 ret void }