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 | 67c6ab88653289579cca588adbac1ccf05dd7f64 (patch) | |
| tree | fdd9a43982399db48e29af95887b5f46c006197c /llvm/test/CodeGen/X86/unknown-location.ll | |
| parent | fb340102582bb975698c20aefad833a07243c4c6 (diff) | |
| download | bcm5719-llvm-67c6ab88653289579cca588adbac1ccf05dd7f64.tar.gz bcm5719-llvm-67c6ab88653289579cca588adbac1ccf05dd7f64.zip | |
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.
llvm-svn: 119613
Diffstat (limited to 'llvm/test/CodeGen/X86/unknown-location.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/unknown-location.ll | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/X86/unknown-location.ll b/llvm/test/CodeGen/X86/unknown-location.ll index fa98b781e4e..bb8d59e1b72 100644 --- a/llvm/test/CodeGen/X86/unknown-location.ll +++ b/llvm/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 |

