diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-11-18 02:04:25 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-11-18 02:04:25 +0000 |
commit | 5c0556341e29246e697c73844a5f9b1e14474715 (patch) | |
tree | 1373de8b2647e82c998640e6805748edf4a7306c /test | |
parent | 5c71c7a13715ed6f5bfdd5497172ddec316b68b0 (diff) | |
download | llvm-5c0556341e29246e697c73844a5f9b1e14474715.tar.gz llvm-5c0556341e29246e697c73844a5f9b1e14474715.tar.bz2 llvm-5c0556341e29246e697c73844a5f9b1e14474715.tar.xz |
Change CodeGen to use .loc directives. This produces a lot more readable output
and testing is easier. A good example is the unknown-location.ll test that
now can just look for ".loc 1 0 0". We also don't use a DW_LNE_set_address for
every address change anymore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119613 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/unknown-location.ll | 8 | ||||
-rw-r--r-- | test/DebugInfo/2010-09-16-EmptyFilename.ll | 4 |
2 files changed, 5 insertions, 7 deletions
diff --git a/test/CodeGen/X86/unknown-location.ll b/test/CodeGen/X86/unknown-location.ll index fa98b781e4..bb8d59e1b7 100644 --- a/test/CodeGen/X86/unknown-location.ll +++ b/test/CodeGen/X86/unknown-location.ll @@ -1,15 +1,15 @@ ; RUN: llc < %s -asm-verbose=false -march=x86-64 -use-unknown-locations | FileCheck %s ; The divide instruction does not have a debug location. CodeGen should -; represent this in the debug information. This is checked by a check -; for a label between the code for the add and the code for the divide, -; which indicates that the add's location doesn't spill over unto the -; divide. +; represent this in the debug information. This is done by setting line +; and column to 0 ; CHECK: leal (%rdi,%rsi), %eax +; CHECK-NEXT: .loc 1 0 0 ; CHECK-NEXT: Ltmp ; CHECK-NEXT: cltd ; CHECK-NEXT: idivl %r8d +; CHECK-NEXT: .loc 1 4 3 ; CHECK-NEXT: Ltmp ; CHECK-NEXT: addl %ecx, %eax ; CHECK-NEXT: ret diff --git a/test/DebugInfo/2010-09-16-EmptyFilename.ll b/test/DebugInfo/2010-09-16-EmptyFilename.ll index 66c1e88a15..406d88fbb2 100644 --- a/test/DebugInfo/2010-09-16-EmptyFilename.ll +++ b/test/DebugInfo/2010-09-16-EmptyFilename.ll @@ -1,8 +1,6 @@ ; RUN: llc -O0 < %s - | FileCheck %s ; Radar 8286101 -; CHECK: File size -; CHECK-NEXT: stdin -; CHECK-NEXT: Directory +; CHECK: .file 2 "<stdin>" define i32 @foo() nounwind ssp { entry: |