[llvm] [NVPTX] Add ptxas verification and kernel test to sm-version test (PR #139543)

Durgadoss R via llvm-commits llvm-commits at lists.llvm.org
Mon May 12 09:22:36 PDT 2025


================
@@ -56,6 +56,64 @@
 ; RUN: llc < %s -mtriple=nvptx64 -mcpu=sm_121 | FileCheck %s --check-prefix=SM121
 ; RUN: llc < %s -mtriple=nvptx64 -mcpu=sm_121a | FileCheck %s --check-prefix=SM121a
 
+; RUN: %if ptxas %{ llc < %s -mtriple=nvptx -mcpu=sm_20 | %ptxas-verify %}
----------------
durga4github wrote:

I thought ptxas-verify also needs `-arch=sm_xy`. (with sm_60 being the default). No?

https://github.com/llvm/llvm-project/pull/139543


More information about the llvm-commits mailing list