[clang] [llvm] [AMDGPU] Added SRAMECC feature for gfx1250/1251 (PR #203313)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 16 08:50:59 PDT 2026
================
@@ -64,6 +64,18 @@
// TARGETID-BOTH: "-target-feature" "+xnack"
// TARGETID-BOTH-SAME: "-target-feature" "+sramecc"
+// RUN: %clang -### --target=amdgcn-amd-amdhsa -mcpu=gfx1250:sramecc+ %s 2>&1 | \
+// RUN: FileCheck -check-prefix=SRAMECC-ON %s
+
+// RUN: %clang -### --target=amdgcn-amd-amdhsa -mcpu=gfx1250:sramecc- %s 2>&1 | \
+// RUN: FileCheck -check-prefix=SRAMECC-OFF %s
+
+// RUN: %clang -### --target=amdgcn-amd-amdhsa -mcpu=gfx1251:sramecc+ %s 2>&1 | \
+// RUN: FileCheck -check-prefix=SRAMECC-ON %s
+
+// RUN: %clang -### --target=amdgcn-amd-amdhsa -mcpu=gfx1251:sramecc- %s 2>&1 | \
+// RUN: FileCheck -check-prefix=SRAMECC-OFF %s
----------------
arsenm wrote:
Better to test in llvm than clang (I also ran into needing this patch in #204150 to avoid tests breaking)
https://github.com/llvm/llvm-project/pull/203313
More information about the cfe-commits
mailing list