[llvm] [NVPTX][CI] Add prefetch-inferas-test.ll sm version (PR #152492)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 7 06:28:21 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-nvptx
Author: Abhilash Majumder (abhilash1910)
<details>
<summary>Changes</summary>
prefetch-inferas-test.ll was added in #<!-- -->146203 , but due to missing ptxas version the CI is defaulting to sm 60.
This patch adds the arg in ptxas check.
cc @<!-- -->durga4github
---
Full diff: https://github.com/llvm/llvm-project/pull/152492.diff
1 Files Affected:
- (modified) llvm/test/CodeGen/NVPTX/prefetch-inferas-test.ll (+2-1)
``````````diff
diff --git a/llvm/test/CodeGen/NVPTX/prefetch-inferas-test.ll b/llvm/test/CodeGen/NVPTX/prefetch-inferas-test.ll
index 822a75eab24c2..af581e63e4e49 100644
--- a/llvm/test/CodeGen/NVPTX/prefetch-inferas-test.ll
+++ b/llvm/test/CodeGen/NVPTX/prefetch-inferas-test.ll
@@ -1,6 +1,6 @@
; RUN: opt < %s -S -passes=infer-address-spaces | FileCheck %s --check-prefix=INFER
; RUN: llc < %s -mtriple=nvptx64 -mcpu=sm_90 -mattr=+ptx80 | FileCheck %s --check-prefix=PTX
-; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64 -mcpu=sm_90 -mattr=+ptx80 | %ptxas-verify %}
+; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64 -mcpu=sm_90 -mattr=+ptx80 | %ptxas-verify -arch=sm_90 %}
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v16:16:16-v32:32:32-v64:64:64-v128:128:128-n16:32:64"
target triple = "nvptx64-unknown-unknown"
@@ -76,3 +76,4 @@ entry:
declare void @llvm.nvvm.prefetch.tensormap.p0(ptr)
declare void @llvm.nvvm.prefetch.tensormap.p4(ptr addrspace(4))
declare void @llvm.nvvm.prefetch.tensormap.p101(ptr addrspace(101))
+
``````````
</details>
https://github.com/llvm/llvm-project/pull/152492
More information about the llvm-commits
mailing list