[llvm] f0a5e50 - [llvm][NVPTX] Add missing feature guard.
Adrian Kuegel via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 18 23:53:54 PDT 2024
Author: Adrian Kuegel
Date: 2024-03-19T06:53:14Z
New Revision: f0a5e5055029e9ab1c49a8580f09fa4c0e172ee1
URL: https://github.com/llvm/llvm-project/commit/f0a5e5055029e9ab1c49a8580f09fa4c0e172ee1
DIFF: https://github.com/llvm/llvm-project/commit/f0a5e5055029e9ab1c49a8580f09fa4c0e172ee1.diff
LOG: [llvm][NVPTX] Add missing feature guard.
Added:
Modified:
llvm/test/CodeGen/NVPTX/dynamic_stackalloc.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/NVPTX/dynamic_stackalloc.ll b/llvm/test/CodeGen/NVPTX/dynamic_stackalloc.ll
index 2db0c67800a259..09297fb819ce55 100644
--- a/llvm/test/CodeGen/NVPTX/dynamic_stackalloc.ll
+++ b/llvm/test/CodeGen/NVPTX/dynamic_stackalloc.ll
@@ -3,7 +3,7 @@
; RUN: llc < %s -march=nvptx -mattr=+ptx73 -mcpu=sm_52 | FileCheck %s --check-prefixes=CHECK,CHECK-32
; RUN: llc < %s -march=nvptx64 -mattr=+ptx73 -mcpu=sm_52 | FileCheck %s --check-prefixes=CHECK,CHECK-64
-; RUN: %if ptxas %{ llc < %s -march=nvptx -mattr=+ptx73 -mcpu=sm_52 | %ptxas-verify %}
+; RUN: %if ptxas && !ptxas-12.0 %{ llc < %s -march=nvptx -mattr=+ptx73 -mcpu=sm_52 | %ptxas-verify %}
; RUN: %if ptxas %{ llc < %s -march=nvptx64 -mattr=+ptx73 -mcpu=sm_52 | %ptxas-verify %}
; CHECK-FAILS: in function test_dynamic_stackalloc{{.*}}: Support for dynamic alloca introduced in PTX ISA version 7.3 and requires target sm_52.
@@ -41,4 +41,4 @@ define i32 @test_dynamic_stackalloc(i64 %n) {
ret i32 %call
}
-declare i32 @bar(ptr)
\ No newline at end of file
+declare i32 @bar(ptr)
More information about the llvm-commits
mailing list