Skip to content

Commit c33deb1

Browse files
committed
[NVPTX] Fix failing tests on incompatible PTX version
Summary: It seems some recent changes caused us to emit labels in the debug sections. This is only allowed in PTX70 which caused the `ptxas` lines to fail if present. Simply add `+ptx70` on it, maybe this needs to investigate the change that caused this? But I'm not sure how much we care about the older targets.
1 parent 90627a5 commit c33deb1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

llvm/test/DebugInfo/NVPTX/dbg-value-const-byref.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: llc -mtriple=nvptx64-nvidia-cuda < %s | FileCheck %s
2-
; RUN: %if ptxas %{ llc -mtriple=nvptx64-nvidia-cuda < %s | %ptxas-verify %}
2+
; RUN: %if ptxas %{ llc -mtriple=nvptx64-nvidia-cuda -mattr=+ptx70 < %s | %ptxas-verify %}
33

44
; Generated with -O1 from:
55
; int f1();

llvm/test/DebugInfo/NVPTX/debug-info.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: llc < %s -mtriple=nvptx64-nvidia-cuda | FileCheck %s
2-
; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64-nvidia-cuda | %ptxas-verify %}
2+
; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64-nvidia-cuda -mattr=+ptx70 | %ptxas-verify %}
33

44
; // Bitcode in this test case is reduced version of compiled code below:
55
;__device__ inline void res(float x, float y, ptr res) { *res = x + y; }

llvm/test/DebugInfo/NVPTX/debug-loc-offset.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: llc -mtriple=nvptx64-nvidia-cuda < %s | FileCheck %s
2-
; RUN: %if ptxas %{ llc -mtriple=nvptx64-nvidia-cuda < %s | %ptxas-verify %}
2+
; RUN: %if ptxas %{ llc -mtriple=nvptx64-nvidia-cuda < %s -mattr=+ptx70 | %ptxas-verify %}
33

44
; CHECK: .target sm_{{[0-9]+}}, debug
55

0 commit comments

Comments
 (0)