[llvm] [NVPTX][CI] Add prefetch-inferas-test.ll sm version (PR #152492)
Abhilash Majumder via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 7 06:27:42 PDT 2025
https://github.com/abhilash1910 created https://github.com/llvm/llvm-project/pull/152492
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.
>From 416174f3f3f813137ebe19feacb329194368de4a Mon Sep 17 00:00:00 2001
From: Abhilash Majumder <30946547+abhilash1910 at users.noreply.github.com>
Date: Thu, 7 Aug 2025 18:53:21 +0530
Subject: [PATCH] Fix prefetch-inferas-test.ll sm version
---
llvm/test/CodeGen/NVPTX/prefetch-inferas-test.ll | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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))
+
More information about the llvm-commits
mailing list