; RUN: llc -O0 %s -mtriple=aarch64 -o - | FileCheck %s ; Test that a DEBUG_VALUE node is create for variable c after the phi has been ; converted to a ldr. The DEBUG_VALUE must be *after* the ldr and not before it. ; Created from the C code, compiled with -O0 -g and then passed through opt -mem2reg: ; ; int func(int a) ; { ; int c = 1; ; if (a < 0 ) { ; c = 12; ; } ; return c; ; } ; ; Function Attrs: nounwind define i32 @func(i32) #0 !dbg !8 { call void @llvm.dbg.value(metadata i32 %0, i64 0, metadata !12, metadata !13), !dbg !14 call void @llvm.dbg.value(metadata i32 1, i64 0, metadata !15, metadata !13), !dbg !16 %2 = icmp slt i32 %0, 0, !dbg !17 br i1 %2, label %3, label %4, !dbg !19 ;