[llvm] r297199 - [GlobalISel] Add constant dbg.value translation tests. NFC.

Ahmed Bougacha via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 7 12:34:14 PST 2017


Author: ab
Date: Tue Mar  7 14:34:13 2017
New Revision: 297199

URL: http://llvm.org/viewvc/llvm-project?rev=297199&view=rev
Log:
[GlobalISel] Add constant dbg.value translation tests. NFC.

Modified:
    llvm/trunk/test/CodeGen/AArch64/GlobalISel/debug-insts.ll

Modified: llvm/trunk/test/CodeGen/AArch64/GlobalISel/debug-insts.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/AArch64/GlobalISel/debug-insts.ll?rev=297199&r1=297198&r2=297199&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/AArch64/GlobalISel/debug-insts.ll (original)
+++ llvm/trunk/test/CodeGen/AArch64/GlobalISel/debug-insts.ll Tue Mar  7 14:34:13 2017
@@ -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
 }
 




More information about the llvm-commits mailing list