[llvm] [NFC][AMDGPU][GlobalISel] Test bufer_load/store of pointers (crashes) (PR #110711)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 1 10:46:33 PDT 2024
================
@@ -0,0 +1,71 @@
+; RUN: not --crash llc -global-isel -mtriple=amdgcn -mcpu=gfx90a -verify-machineinstrs -stop-after=instruction-select < %s
+
+define ptr addrspace(0) @buffer_load_p0(ptr addrspace(8) inreg %buf) {
+ %ret = call ptr addrspace(0) @llvm.amdgcn.raw.ptr.buffer.load.p0(ptr addrspace(8) inreg %buf, i32 0, i32 0, i32 0)
+ ret ptr addrspace(0) %ret
+}
+
+define void @buffer_store_p0(ptr addrspace(0) %data, ptr addrspace(8) inreg %buf) {
+ call void @llvm.amdgcn.raw.ptr.buffer.store.p0(ptr addrspace(0) %data, ptr addrspace(8) inreg %buf, i32 0, i32 0, i32 0)
----------------
arsenm wrote:
Remove the addrspace(0)s everywhere
https://github.com/llvm/llvm-project/pull/110711
More information about the llvm-commits
mailing list