From 148cb22dd75f25b87e4d8621f83e087dcdf98e78 Mon Sep 17 00:00:00 2001 From: Karthik Senthil Date: Thu, 2 Apr 2026 13:02:29 -0700 Subject: [PATCH] [NVPTX] Fix missing arch version for ptxas in LIT test. (#190231) Recently added LIT test in #188539 missed -arch option for ptxas causing post commit build failure. This PR addresses that failure. --- llvm/test/CodeGen/NVPTX/asm-printer-ptx-module-directives.ll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/test/CodeGen/NVPTX/asm-printer-ptx-module-directives.ll b/llvm/test/CodeGen/NVPTX/asm-printer-ptx-module-directives.ll index cc4323a92176..3dde9950d24b 100644 --- a/llvm/test/CodeGen/NVPTX/asm-printer-ptx-module-directives.ll +++ b/llvm/test/CodeGen/NVPTX/asm-printer-ptx-module-directives.ll @@ -1,7 +1,7 @@ ; Test to verify functionality of NVPTXAsmPrinter for PTX module directives and header. ; RUN: llc < %s -mtriple=nvptx64 -mcpu=sm_100 -mattr=+ptx87 | FileCheck %s -; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64 -mcpu=sm_100 -mattr=+ptx87 | %ptxas-verify %} +; RUN: %if ptxas-sm_100 && ptxas-isa-8.7 %{ llc < %s -mtriple=nvptx64 -mcpu=sm_100 -mattr=+ptx87 | %ptxas-verify -arch=sm_100 %} ; CHECK: // ; CHECK-NEXT: // Generated by LLVM NVPTX Back-End