[llvm] [AMDGPU] Error on non-global pointer with s_prefetch_data (PR #107624)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 11 05:55:35 PDT 2024


================
@@ -1,8 +1,8 @@
-; RUN: not --crash llc -march=amdgcn -mcpu=gfx1200 < %s 2>&1 | FileCheck --check-prefixes=GCN-ERR %s
+; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
 
-; GCN-ERR: LLVM ERROR: s_prefetch_data only supports global or constant memory
 define amdgpu_ps void @prefetch_data_sgpr_base_imm_len_local(ptr addrspace(3) inreg %ptr) {
 entry:
+  ; CHECK:s_prefetch_data only supports global or constant memory
----------------
arsenm wrote:

```suggestion
  ; CHECK: s_prefetch_data only supports global or constant memory
```

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


More information about the llvm-commits mailing list