[llvm] 9933302 - [NVPTX] Fix NVPTX DebugInfo tests on Windows

Andrew Savonichev via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 27 07:32:40 PDT 2022


Author: Andrew Savonichev
Date: 2022-04-27T17:32:00+03:00
New Revision: 99333026607fe7c40bae01528ed02def9f6ee3e9

URL: https://github.com/llvm/llvm-project/commit/99333026607fe7c40bae01528ed02def9f6ee3e9
DIFF: https://github.com/llvm/llvm-project/commit/99333026607fe7c40bae01528ed02def9f6ee3e9.diff

LOG: [NVPTX] Fix NVPTX DebugInfo tests on Windows

Added: 
    

Modified: 
    llvm/test/DebugInfo/NVPTX/debug-file-loc-only.ll
    llvm/test/DebugInfo/NVPTX/debug-file-loc.ll
    llvm/test/DebugInfo/NVPTX/dwarf-file-dir.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/DebugInfo/NVPTX/debug-file-loc-only.ll b/llvm/test/DebugInfo/NVPTX/debug-file-loc-only.ll
index 9d1922bc6d1f6..200fcf657dd7e 100644
--- a/llvm/test/DebugInfo/NVPTX/debug-file-loc-only.ll
+++ b/llvm/test/DebugInfo/NVPTX/debug-file-loc-only.ll
@@ -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{{.*}}
 

diff  --git a/llvm/test/DebugInfo/NVPTX/debug-file-loc.ll b/llvm/test/DebugInfo/NVPTX/debug-file-loc.ll
index 9a37468488372..9ab007741f994 100644
--- a/llvm/test/DebugInfo/NVPTX/debug-file-loc.ll
+++ b/llvm/test/DebugInfo/NVPTX/debug-file-loc.ll
@@ -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

diff  --git a/llvm/test/DebugInfo/NVPTX/dwarf-file-dir.ll b/llvm/test/DebugInfo/NVPTX/dwarf-file-dir.ll
index b3deabb4991ee..272a59e756f4f 100644
--- a/llvm/test/DebugInfo/NVPTX/dwarf-file-dir.ll
+++ b/llvm/test/DebugInfo/NVPTX/dwarf-file-dir.ll
@@ -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


        


More information about the llvm-commits mailing list