Skip to content

Commit 515e11a

Browse files
author
Hugh Delaney
authored
[NVPTX] Use PTX 7.0 in DebugInfo tests (#115757)
Not doing so makes `%ptxas-verify` fail with: `Feature 'Defining labels in .section' requires PTX ISA .version 7.0 or later.`
1 parent 9254b81 commit 515e11a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: llc -mtriple=nvptx64-nvidia-cuda < %s | FileCheck %s
2-
; RUN: %if ptxas %{ llc -mtriple=nvptx64-nvidia-cuda < %s | %ptxas-verify %}
1+
; RUN: llc -mtriple=nvptx64-nvidia-cuda -mattr=+ptx70 < %s | FileCheck %s
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: llc < %s -mtriple=nvptx64-nvidia-cuda | FileCheck %s
2-
; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64-nvidia-cuda | %ptxas-verify %}
1+
; RUN: llc < %s -mtriple=nvptx64-nvidia-cuda -mattr=+ptx70 | FileCheck %s
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: llc -mtriple=nvptx64-nvidia-cuda < %s | FileCheck %s
2-
; RUN: %if ptxas %{ llc -mtriple=nvptx64-nvidia-cuda < %s | %ptxas-verify %}
1+
; RUN: llc -mtriple=nvptx64-nvidia-cuda -mattr=+ptx70 < %s | FileCheck %s
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)