forked from OSchip/llvm-project
[NVPTX] Fix NVPTX DebugInfo tests on Windows
This commit is contained in:
parent
d137c05fc9
commit
9933302660
|
@ -27,8 +27,8 @@ bb:
|
|||
ret void, !dbg !11
|
||||
}
|
||||
|
||||
; CHECK-DAG: .file [[FOO]] "/source/dir{{[/\\]}}foo.h"
|
||||
; CHECK-DAG: .file [[BAR]] "/source/dir{{[/\\]}}bar.cu"
|
||||
; CHECK-DAG: .file [[FOO]] "/source/dir{{/|\\\\}}foo.h"
|
||||
; CHECK-DAG: .file [[BAR]] "/source/dir{{/|\\\\}}bar.cu"
|
||||
|
||||
; CHECK-NOT: .section .debug{{.*}}
|
||||
|
||||
|
|
|
@ -27,8 +27,8 @@ bb:
|
|||
ret void, !dbg !11
|
||||
}
|
||||
|
||||
; CHECK-DAG: .file [[FOO]] "/source/dir{{[/\\]}}foo.h"
|
||||
; CHECK-DAG: .file [[BAR]] "/source/dir{{[/\\]}}bar.cu"
|
||||
; CHECK-DAG: .file [[FOO]] "/source/dir{{/|\\\\}}foo.h"
|
||||
; CHECK-DAG: .file [[BAR]] "/source/dir{{/|\\\\}}bar.cu"
|
||||
; CHECK: .section .debug_abbrev
|
||||
; CHECK-NEXT: {
|
||||
; CHECK-NEXT: .b8 1 // Abbreviation Code
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
; RUN: llc < %s -mtriple=nvptx64-nvidia-cuda | FileCheck --check-prefix=CHECK-NODIR %s
|
||||
; RUN: llc < %s -mtriple=nvptx64-nvidia-cuda -dwarf-directory=1 | FileCheck --check-prefix=CHECK-DIR %s
|
||||
|
||||
; compilation on Windows results in: /tmp/dbginfo/a\\a.cpp
|
||||
; UNSUPPORTED: windows
|
||||
|
||||
; CHECK-NODIR: .file {{[0-9]+}} "/tmp/dbginfo/a/a.cpp"
|
||||
; CHECK-NODIR: .file {{[0-9]+}} "/tmp/dbginfo/a{{/|\\\\}}a.cpp"
|
||||
;
|
||||
; ptxas does not support .file directory syntax, but it can still be
|
||||
; forced by -dwarf-directory=1
|
||||
|
|
Loading…
Reference in New Issue