[llvm] [NVPTX] support switch statement with brx.idx (reland) (PR #102550)

Artem Belevich via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 8 17:01:08 PDT 2024


================
@@ -0,0 +1,69 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
+; RUN: llc < %s | FileCheck %s
+; RUN: %if ptxas %{ llc < %s | %ptxas-verify %}
+
+target triple = "nvptx64-nvidia-cuda"
+
+ at out = addrspace(1) global i32 0, align 4
+
+define void @foo(i32 %i) {
----------------
Artem-B wrote:

It may be useful to add a test case which triggered the failure in the original patch w/o the barrier attribute.


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


More information about the llvm-commits mailing list