Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/DebugInfo/X86/sdagsplit-1.ll
; RUN: llc %s -stop-after=livedebugvars -o %t -experimental-debug-variable-locations=false | ; RUN: llc %s -stop-after=livedebugvars -o %t -experimental-debug-variable-locations=true | ||||
; RUN: cat %t | FileCheck %s | ; RUN: cat %t | FileCheck %s | ||||
; | ; | ||||
; Test that we can emit debug info for large values that are split | ; Test that we can emit debug info for large values that are split | ||||
; up across multiple registers by the SelectionDAG type legalizer. | ; up across multiple registers by the SelectionDAG type legalizer. | ||||
; | ; | ||||
; // Compile with -O1 -m32. | ; // Compile with -O1 -m32. | ||||
; long long foo (long long a, long long b) | ; long long foo (long long a, long long b) | ||||
; { | ; { | ||||
; long long res = b+1; | ; long long res = b+1; | ||||
; if ( a == b ) | ; if ( a == b ) | ||||
; return res; | ; return res; | ||||
; return 0; | ; return 0; | ||||
; } | ; } | ||||
; | ; | ||||
; CHECK-DAG: DBG_VALUE ${{[a-z]+}}, $noreg, !{{[0-9]+}}, !DIExpression(DW_OP_LLVM_fragment, 0, 32), debug-location !{{[0-9]+}} | ; CHECK-DAG: DBG_VALUE ${{[a-z]+}}, $noreg, !{{[0-9]+}}, !DIExpression(DW_OP_LLVM_fragment, 0, 32), debug-location | ||||
; CHECK-DAG: DBG_VALUE ${{[a-z]+}}, $noreg, !{{[0-9]+}}, !DIExpression(DW_OP_LLVM_fragment, 32, 32), debug-location !{{[0-9]+}} | ; CHECK-DAG: DBG_VALUE ${{[a-z]+}}, $noreg, !{{[0-9]+}}, !DIExpression(DW_OP_LLVM_fragment, 32, 32), debug-location | ||||
; ModuleID = 'sdagsplit-1.c' | ; ModuleID = 'sdagsplit-1.c' | ||||
target datalayout = "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128" | target datalayout = "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128" | ||||
target triple = "i386" | target triple = "i386" | ||||
; Function Attrs: nounwind readnone | ; Function Attrs: nounwind readnone | ||||
define i64 @foo(i64 %a, i64 %b) local_unnamed_addr #0 !dbg !8 { | define i64 @foo(i64 %a, i64 %b) local_unnamed_addr #0 !dbg !8 { | ||||
entry: | entry: | ||||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |