[llvm] 3cf072d - [NVPTX] Fix ptxas-verify line.
Adrian Kuegel via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 5 05:04:46 PDT 2025
Author: Adrian Kuegel
Date: 2025-08-05T12:03:11Z
New Revision: 3cf072d4bfe2d038757ebe6197fdac9c9bd6a7ed
URL: https://github.com/llvm/llvm-project/commit/3cf072d4bfe2d038757ebe6197fdac9c9bd6a7ed
DIFF: https://github.com/llvm/llvm-project/commit/3cf072d4bfe2d038757ebe6197fdac9c9bd6a7ed.diff
LOG: [NVPTX] Fix ptxas-verify line.
Without specifying -arch=sm_90, we get this error:
ptxas fatal : SM version specified by .target is higher than default SM version assumed
Added:
Modified:
llvm/test/CodeGen/NVPTX/combine-min-max.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/NVPTX/combine-min-max.ll b/llvm/test/CodeGen/NVPTX/combine-min-max.ll
index 4c644f3f36990..e7140ab13d4bd 100644
--- a/llvm/test/CodeGen/NVPTX/combine-min-max.ll
+++ b/llvm/test/CodeGen/NVPTX/combine-min-max.ll
@@ -1,7 +1,7 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
; RUN: llc < %s -mcpu=sm_90 -mattr=+ptx80 -O3 | FileCheck %s --check-prefixes=CHECK,SM90
; RUN: llc < %s -mcpu=sm_20 -O3 | FileCheck %s --check-prefixes=CHECK,SM20
-; RUN: %if ptxas-12.0 %{ llc < %s -mcpu=sm_90 -mattr=+ptx80 -O3 | %ptxas-verify %}
+; RUN: %if ptxas-12.0 %{ llc < %s -mcpu=sm_90 -mattr=+ptx80 -O3 | %ptxas-verify -arch=sm_90 %}
; RUN: %if ptxas-12.0 %{ llc < %s -mcpu=sm_20 -O3 | %ptxas-verify %}
target triple = "nvptx64-nvidia-cuda"
More information about the llvm-commits
mailing list