[llvm] [AMDGPU] Fix s_buffer_load crash for illegal result types (PR #215483)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 13 10:22:48 PDT 2026


================
@@ -0,0 +1,101 @@
+; RUN: not llc -mtriple=amdgcn -mcpu=gfx900 -filetype=null %s 2>&1 | FileCheck %s --check-prefixes=CHECK,SDAG
+; RUN: not llc -global-isel=1 -mtriple=amdgcn -mcpu=gfx900 -filetype=null %s 2>&1 | FileCheck %s --check-prefixes=CHECK,GISEL
+; RUN: not llc -mtriple=amdgcn -mcpu=gfx1100 -filetype=null %s 2>&1 | FileCheck %s --check-prefixes=CHECK,SDAG
+; RUN: not llc -global-isel=1 -mtriple=amdgcn -mcpu=gfx1100 -filetype=null %s 2>&1 | FileCheck %s --check-prefixes=CHECK,GISEL
----------------
arsenm wrote:

```suggestion
; RUN: not llc -mtriple=amdgpu9.00 -filetype=null %s 2>&1 | FileCheck %s --check-prefixes=CHECK,SDAG
; RUN: not llc -global-isel=1 -mtriple=amdgpu9.00 -filetype=null %s 2>&1 | FileCheck %s --check-prefixes=CHECK,GISEL
; RUN: not llc -mtriple=amdgpu11.00 -filetype=null %s 2>&1 | FileCheck %s --check-prefixes=CHECK,SDAG
; RUN: not llc -global-isel=1 -mtriple=amdgpu11.00 -filetype=null %s 2>&1 | FileCheck %s --check-prefixes=CHECK,GISEL
```

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


More information about the llvm-commits mailing list