From 8dc1efba5877e8332a425071dcd68bca397e86a0 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 17 Nov 2015 16:15:11 +0000 Subject: [PATCH] Update DebugInfo tests for the change in DEBUG_VALUE output in r253338. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253340 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/DebugInfo/ARM/PR16736.ll | 2 +- test/DebugInfo/X86/array.ll | 4 ++-- test/DebugInfo/X86/dbg-value-dag-combine.ll | 2 +- test/DebugInfo/X86/debug-loc-asan.ll | 4 ++-- test/DebugInfo/X86/op_deref.ll | 2 +- test/DebugInfo/X86/reference-argument.ll | 2 +- test/DebugInfo/X86/vla.ll | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/test/DebugInfo/ARM/PR16736.ll b/test/DebugInfo/ARM/PR16736.ll index 905cb2d174e..dd299a2a97d 100644 --- a/test/DebugInfo/ARM/PR16736.ll +++ b/test/DebugInfo/ARM/PR16736.ll @@ -1,5 +1,5 @@ ; RUN: llc -filetype=asm < %s | FileCheck %s -; CHECK: @DEBUG_VALUE: h:x <- [R{{.*}}+{{.*}}] +; CHECK: @DEBUG_VALUE: h:x <- [%R{{.*}}+{{.*}}] ; generated from: ; clang -cc1 -triple thumbv7 -S -O1 arm.cpp -g ; diff --git a/test/DebugInfo/X86/array.ll b/test/DebugInfo/X86/array.ll index 3e0180e62d5..a50a44cfb95 100644 --- a/test/DebugInfo/X86/array.ll +++ b/test/DebugInfo/X86/array.ll @@ -16,8 +16,8 @@ ; Test that we only emit register-indirect locations for the array array. ; rdar://problem/14874886 ; -; CHECK: ##DEBUG_VALUE: main:array <- [R{{.*}}+0] -; CHECK-NOT: ##DEBUG_VALUE: main:array <- R{{.*}} +; CHECK: ##DEBUG_VALUE: main:array <- [%R{{.*}}+0] +; CHECK-NOT: ##DEBUG_VALUE: main:array <- %R{{.*}} target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-apple-macosx10.9.0" diff --git a/test/DebugInfo/X86/dbg-value-dag-combine.ll b/test/DebugInfo/X86/dbg-value-dag-combine.ll index ffbec19fa12..6243be8aa4a 100644 --- a/test/DebugInfo/X86/dbg-value-dag-combine.ll +++ b/test/DebugInfo/X86/dbg-value-dag-combine.ll @@ -15,7 +15,7 @@ entry: call void @llvm.dbg.value(metadata i32 0, i64 0, metadata !13, metadata !DIExpression()), !dbg !14 %tmp2 = load i32, i32 addrspace(1)* %ip, align 4, !dbg !15 %tmp3 = add i32 0, %tmp2, !dbg !15 -; CHECK: ##DEBUG_VALUE: idx <- E{{..$}} +; CHECK: ##DEBUG_VALUE: idx <- %E{{..$}} call void @llvm.dbg.value(metadata i32 %tmp3, i64 0, metadata !13, metadata !DIExpression()), !dbg !15 %arrayidx = getelementptr i32, i32 addrspace(1)* %ip, i32 %1, !dbg !16 store i32 %tmp3, i32 addrspace(1)* %arrayidx, align 4, !dbg !16 diff --git a/test/DebugInfo/X86/debug-loc-asan.ll b/test/DebugInfo/X86/debug-loc-asan.ll index 7f25f015a34..d1131379f56 100644 --- a/test/DebugInfo/X86/debug-loc-asan.ll +++ b/test/DebugInfo/X86/debug-loc-asan.ll @@ -10,12 +10,12 @@ ; with "clang++ -S -emit-llvm -fsanitize=address -O0 -g test.cc" ; First, argument variable "y" resides in %rdi: -; CHECK: DEBUG_VALUE: bar:y <- RDI +; CHECK: DEBUG_VALUE: bar:y <- %RDI ; Then its address is stored in a location on a stack: ; CHECK: movq %rdi, [[OFFSET:[0-9]+]](%rsp) ; CHECK-NEXT: [[START_LABEL:.Ltmp[0-9]+]] -; CHECK-NEXT: DEBUG_VALUE: bar:y <- [RSP+[[OFFSET]]] +; CHECK-NEXT: DEBUG_VALUE: bar:y <- [%RSP+[[OFFSET]]] ; This location should be valid until the end of the function. ; CHECK: .Ldebug_loc{{[0-9]+}}: diff --git a/test/DebugInfo/X86/op_deref.ll b/test/DebugInfo/X86/op_deref.ll index 1d89a686918..621d3f5f7f1 100644 --- a/test/DebugInfo/X86/op_deref.ll +++ b/test/DebugInfo/X86/op_deref.ll @@ -20,7 +20,7 @@ ; right now, so we check the asm output: ; RUN: llc -O0 -mtriple=x86_64-apple-darwin %s -o - -filetype=asm | FileCheck %s -check-prefix=ASM-CHECK ; vla should have a register-indirect address at one point. -; ASM-CHECK: DEBUG_VALUE: vla <- RCX +; ASM-CHECK: DEBUG_VALUE: vla <- %RCX ; ASM-CHECK: DW_OP_breg2 ; RUN: llvm-as %s -o - | llvm-dis - | FileCheck %s --check-prefix=PRETTY-PRINT diff --git a/test/DebugInfo/X86/reference-argument.ll b/test/DebugInfo/X86/reference-argument.ll index d45d04d1396..8cf4fb82545 100644 --- a/test/DebugInfo/X86/reference-argument.ll +++ b/test/DebugInfo/X86/reference-argument.ll @@ -3,7 +3,7 @@ ; extracted from debuginfo-tests/aggregate-indirect-arg.cpp ; v should not be a pointer. -; CHECK: ##DEBUG_VALUE: foo:v <- RSI +; CHECK: ##DEBUG_VALUE: foo:v <- %RSI ; rdar://problem/13658587 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" diff --git a/test/DebugInfo/X86/vla.ll b/test/DebugInfo/X86/vla.ll index 68d40ae5d33..f3f4d991002 100644 --- a/test/DebugInfo/X86/vla.ll +++ b/test/DebugInfo/X86/vla.ll @@ -1,6 +1,6 @@ ; RUN: llc -O0 -mtriple=x86_64-apple-darwin -filetype=asm %s -o - | FileCheck %s ; Ensure that we generate an indirect location for the variable length array a. -; CHECK: ##DEBUG_VALUE: vla:a <- RDX +; CHECK: ##DEBUG_VALUE: vla:a <- %RDX ; CHECK: DW_OP_breg1 ; rdar://problem/13658587 ; -- 2.34.1