[llvm] [AMDGPU] Pre-commit tests for FLAT_SCRATCH const offset promotion (NFC) (PR #225397)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 22 06:40:21 PDT 2026


================
@@ -5,8 +5,11 @@
 ; RUN: llc -mtriple=amdgpu9.0a < %s | FileCheck -check-prefixes=GFX9,GFX90A %s
 ; RUN: llc -mtriple=amdgpu11.00 -mattr=+real-true16 < %s | FileCheck -check-prefixes=GFX11,GFX11-TRUE16 %s
 ; RUN: llc -mtriple=amdgpu11.00 -mattr=-real-true16 < %s | FileCheck -check-prefixes=GFX11,GFX11-FAKE16 %s
+; RUN: llc -mtriple=amdgpu9.00 -mattr=+enable-flat-scratch < %s | FileCheck -check-prefixes=GFX9-FLATSCR %s
+; RUN: llc -mtriple=amdgpu10.10 -mattr=+enable-flat-scratch < %s | FileCheck -check-prefixes=GFX10-FLATSCR %s
----------------
arsenm wrote:

Why these targets? Test gfx942 or 12+ where we really use these instructions? before that they were kind of broken 

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


More information about the llvm-commits mailing list