[llvm] [NVPTX] Fix failing tests on incompatible PTX version (PR #111988)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 11 05:30:40 PDT 2024
https://github.com/jhuber6 created https://github.com/llvm/llvm-project/pull/111988
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.
>From c33deb1b89378db4ed77b93c72607a935d585433 Mon Sep 17 00:00:00 2001
From: Joseph Huber <huberjn at outlook.com>
Date: Fri, 11 Oct 2024 07:28:23 -0500
Subject: [PATCH] [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.
---
llvm/test/DebugInfo/NVPTX/dbg-value-const-byref.ll | 2 +-
llvm/test/DebugInfo/NVPTX/debug-info.ll | 2 +-
llvm/test/DebugInfo/NVPTX/debug-loc-offset.ll | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/llvm/test/DebugInfo/NVPTX/dbg-value-const-byref.ll b/llvm/test/DebugInfo/NVPTX/dbg-value-const-byref.ll
index d96d5629d03f03..43229975d28799 100644
--- a/llvm/test/DebugInfo/NVPTX/dbg-value-const-byref.ll
+++ b/llvm/test/DebugInfo/NVPTX/dbg-value-const-byref.ll
@@ -1,5 +1,5 @@
; RUN: llc -mtriple=nvptx64-nvidia-cuda < %s | FileCheck %s
-; RUN: %if ptxas %{ llc -mtriple=nvptx64-nvidia-cuda < %s | %ptxas-verify %}
+; RUN: %if ptxas %{ llc -mtriple=nvptx64-nvidia-cuda -mattr=+ptx70 < %s | %ptxas-verify %}
; Generated with -O1 from:
; int f1();
diff --git a/llvm/test/DebugInfo/NVPTX/debug-info.ll b/llvm/test/DebugInfo/NVPTX/debug-info.ll
index 35443738e05379..3fea59923cbe88 100644
--- a/llvm/test/DebugInfo/NVPTX/debug-info.ll
+++ b/llvm/test/DebugInfo/NVPTX/debug-info.ll
@@ -1,5 +1,5 @@
; RUN: llc < %s -mtriple=nvptx64-nvidia-cuda | FileCheck %s
-; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64-nvidia-cuda | %ptxas-verify %}
+; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64-nvidia-cuda -mattr=+ptx70 | %ptxas-verify %}
; // Bitcode in this test case is reduced version of compiled code below:
;__device__ inline void res(float x, float y, ptr res) { *res = x + y; }
diff --git a/llvm/test/DebugInfo/NVPTX/debug-loc-offset.ll b/llvm/test/DebugInfo/NVPTX/debug-loc-offset.ll
index 45c387fabddacd..8f3c5757adf0e9 100644
--- a/llvm/test/DebugInfo/NVPTX/debug-loc-offset.ll
+++ b/llvm/test/DebugInfo/NVPTX/debug-loc-offset.ll
@@ -1,5 +1,5 @@
; RUN: llc -mtriple=nvptx64-nvidia-cuda < %s | FileCheck %s
-; RUN: %if ptxas %{ llc -mtriple=nvptx64-nvidia-cuda < %s | %ptxas-verify %}
+; RUN: %if ptxas %{ llc -mtriple=nvptx64-nvidia-cuda < %s -mattr=+ptx70 | %ptxas-verify %}
; CHECK: .target sm_{{[0-9]+}}, debug
More information about the llvm-commits
mailing list