[llvm] [AMDGPU] Fix maximum physical LDS reporting for gfx6 (PR #223185)

Chinmay Deshpande via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 14 12:05:44 PDT 2026


================
@@ -3290,7 +3299,15 @@ TEST(TargetParserTest, testAMDGPUgetLocalMemorySize) {
 
 TEST(TargetParserTest, testAMDGPUgetAddressableLocalMemorySize) {
   // A work-group never allocates past the hardware cap, so the doubled
-  // gfx10/11/12 block is capped back to the addressable size.
+  // gfx6 and gfx10/11/12 blocks are capped back to the addressable size.
+  for (Triple::SubArchType SubArch :
+       {Triple::AMDGPUSubArch600, Triple::AMDGPUSubArch601,
+        Triple::AMDGPUSubArch602}) {
+    SCOPED_TRACE(AMDGPU::getArchNameFromSubArch(SubArch));
----------------
chinmaydd wrote:

It is a GTest macro that includes additional context if an assertion fails: the file, the line, and any message you pass.

[Reference](https://github.com/llvm/llvm-project/blob/main/third-party/unittest/googletest/include/gtest/gtest.h#L2104)

It seems to be used across other unit tests and therefore a defensive "debug" measure

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


More information about the llvm-commits mailing list