[llvm] AMDGPU: Migrate llvm-mca tests to subarch triples (PR #211477)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 23 00:15:15 PDT 2026
https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/211477
None
>From be31bc0471c1e19d188047e60b71e4cc4c764a3b Mon Sep 17 00:00:00 2001
From: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: Thu, 23 Jul 2026 09:14:19 +0200
Subject: [PATCH] AMDGPU: Migrate llvm-mca tests to subarch triples
---
llvm/test/tools/llvm-mca/AMDGPU/buffer-op-swz-operand.s | 2 +-
llvm/test/tools/llvm-mca/AMDGPU/carried-over.s | 2 +-
llvm/test/tools/llvm-mca/AMDGPU/gfx10-add-sequence.s | 2 +-
llvm/test/tools/llvm-mca/AMDGPU/gfx10-double.s | 2 +-
llvm/test/tools/llvm-mca/AMDGPU/gfx10-trans.s | 4 ++--
llvm/test/tools/llvm-mca/AMDGPU/gfx11-double.s | 2 +-
llvm/test/tools/llvm-mca/AMDGPU/gfx12-permlane16-cycles.s | 2 +-
llvm/test/tools/llvm-mca/AMDGPU/gfx12-pseudo-scalar-trans.s | 2 +-
llvm/test/tools/llvm-mca/AMDGPU/gfx9-retireooo.s | 2 +-
llvm/test/tools/llvm-mca/AMDGPU/gfx90a-mfma.s | 2 +-
llvm/test/tools/llvm-mca/AMDGPU/gfx942-mfma.s | 2 +-
llvm/test/tools/llvm-mca/AMDGPU/gfx950.s | 2 +-
12 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/llvm/test/tools/llvm-mca/AMDGPU/buffer-op-swz-operand.s b/llvm/test/tools/llvm-mca/AMDGPU/buffer-op-swz-operand.s
index 932d9d1cc48b5..0bbff4de573ec 100644
--- a/llvm/test/tools/llvm-mca/AMDGPU/buffer-op-swz-operand.s
+++ b/llvm/test/tools/llvm-mca/AMDGPU/buffer-op-swz-operand.s
@@ -1,5 +1,5 @@
# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
-# RUN: llvm-mca -mtriple=amdgcn-amd-amdhsa -mcpu=gfx950 < %s | FileCheck %s
+# RUN: llvm-mca -mtriple=amdgpu9.50-amd-amdhsa < %s | FileCheck %s
buffer_load_dwordx4 v[30:33], v4, s[0:3], 0, offen offset:4092
buffer_store_dword v0, v1, s[0:3], 0 offen
diff --git a/llvm/test/tools/llvm-mca/AMDGPU/carried-over.s b/llvm/test/tools/llvm-mca/AMDGPU/carried-over.s
index 3aa31d26dbbad..fd4856040d7dc 100644
--- a/llvm/test/tools/llvm-mca/AMDGPU/carried-over.s
+++ b/llvm/test/tools/llvm-mca/AMDGPU/carried-over.s
@@ -1,5 +1,5 @@
# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
-# RUN: llvm-mca -mtriple=amdgcn -mcpu=gfx942 --timeline --iterations=1 --timeline-max-cycles=0 < %s | FileCheck %s
+# RUN: llvm-mca -mtriple=amdgpu9.42 --timeline --iterations=1 --timeline-max-cycles=0 < %s | FileCheck %s
v_pk_mov_b32 v[0:1], v[2:3], v[4:5]
v_pk_add_f32 v[0:1], v[0:1], v[0:1]
diff --git a/llvm/test/tools/llvm-mca/AMDGPU/gfx10-add-sequence.s b/llvm/test/tools/llvm-mca/AMDGPU/gfx10-add-sequence.s
index c5fb0472a55da..47aaba3d379d2 100644
--- a/llvm/test/tools/llvm-mca/AMDGPU/gfx10-add-sequence.s
+++ b/llvm/test/tools/llvm-mca/AMDGPU/gfx10-add-sequence.s
@@ -1,5 +1,5 @@
# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
-# RUN: llvm-mca -mtriple=amdgcn -mcpu=gfx1010 --timeline --iterations=1 --timeline-max-cycles=0 < %s | FileCheck %s
+# RUN: llvm-mca -mtriple=amdgpu10.10 --timeline --iterations=1 --timeline-max-cycles=0 < %s | FileCheck %s
v_add_f32 v0, v0, v0
v_add_f32 v1, v1, v1
diff --git a/llvm/test/tools/llvm-mca/AMDGPU/gfx10-double.s b/llvm/test/tools/llvm-mca/AMDGPU/gfx10-double.s
index b7a90e85c3b73..05837e9b9ce1c 100644
--- a/llvm/test/tools/llvm-mca/AMDGPU/gfx10-double.s
+++ b/llvm/test/tools/llvm-mca/AMDGPU/gfx10-double.s
@@ -1,5 +1,5 @@
# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
-# RUN: llvm-mca -mtriple=amdgcn -mcpu=gfx1010 --timeline --iterations=1 --timeline-max-cycles=0 < %s | FileCheck %s
+# RUN: llvm-mca -mtriple=amdgpu10.10 --timeline --iterations=1 --timeline-max-cycles=0 < %s | FileCheck %s
v_cvt_i32_f64 v0, v[0:1]
v_cvt_f64_i32 v[2:3], v2
diff --git a/llvm/test/tools/llvm-mca/AMDGPU/gfx10-trans.s b/llvm/test/tools/llvm-mca/AMDGPU/gfx10-trans.s
index 9fd97ce921fc0..b230100b7dfbd 100644
--- a/llvm/test/tools/llvm-mca/AMDGPU/gfx10-trans.s
+++ b/llvm/test/tools/llvm-mca/AMDGPU/gfx10-trans.s
@@ -1,6 +1,6 @@
# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
-# RUN: llvm-mca -mtriple=amdgcn -mcpu=gfx1010 --timeline --iterations=1 --timeline-max-cycles=0 < %s | FileCheck %s -check-prefixes=CHECK,GFX10
-# RUN: llvm-mca -mtriple=amdgcn -mcpu=gfx1100 --timeline --iterations=1 --timeline-max-cycles=0 < %s | FileCheck %s -check-prefixes=CHECK,GFX11
+# RUN: llvm-mca -mtriple=amdgpu10.10 --timeline --iterations=1 --timeline-max-cycles=0 < %s | FileCheck %s -check-prefixes=CHECK,GFX10
+# RUN: llvm-mca -mtriple=amdgpu11.00 --timeline --iterations=1 --timeline-max-cycles=0 < %s | FileCheck %s -check-prefixes=CHECK,GFX11
v_log_f32 v0, v0
v_rcp_f32 v0, v0
diff --git a/llvm/test/tools/llvm-mca/AMDGPU/gfx11-double.s b/llvm/test/tools/llvm-mca/AMDGPU/gfx11-double.s
index aa391024d7db3..039fb28603965 100644
--- a/llvm/test/tools/llvm-mca/AMDGPU/gfx11-double.s
+++ b/llvm/test/tools/llvm-mca/AMDGPU/gfx11-double.s
@@ -1,5 +1,5 @@
# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
-# RUN: llvm-mca -mtriple=amdgcn -mcpu=gfx1100 --timeline --iterations=1 --timeline-max-cycles=0 < %s | FileCheck %s
+# RUN: llvm-mca -mtriple=amdgpu11.00 --timeline --iterations=1 --timeline-max-cycles=0 < %s | FileCheck %s
v_cvt_i32_f64 v0, v[0:1]
v_cvt_f64_i32 v[2:3], v2
diff --git a/llvm/test/tools/llvm-mca/AMDGPU/gfx12-permlane16-cycles.s b/llvm/test/tools/llvm-mca/AMDGPU/gfx12-permlane16-cycles.s
index 51dbc66f50d4e..b7f4613c32bac 100644
--- a/llvm/test/tools/llvm-mca/AMDGPU/gfx12-permlane16-cycles.s
+++ b/llvm/test/tools/llvm-mca/AMDGPU/gfx12-permlane16-cycles.s
@@ -1,5 +1,5 @@
# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
-# RUN: llvm-mca -mtriple=amdgcn -mcpu=gfx1250 --timeline --iterations=1 --timeline-max-cycles=0 < %s | FileCheck %s
+# RUN: llvm-mca -mtriple=amdgpu12.50 --timeline --iterations=1 --timeline-max-cycles=0 < %s | FileCheck %s
v_permlane16_swap_b32_e32 v255, v13
v_maximum3_f32 v12, v12, v24 /*v792*/, v2 /*v770*/
diff --git a/llvm/test/tools/llvm-mca/AMDGPU/gfx12-pseudo-scalar-trans.s b/llvm/test/tools/llvm-mca/AMDGPU/gfx12-pseudo-scalar-trans.s
index 03f6be73341e9..fd0a8f56a0921 100644
--- a/llvm/test/tools/llvm-mca/AMDGPU/gfx12-pseudo-scalar-trans.s
+++ b/llvm/test/tools/llvm-mca/AMDGPU/gfx12-pseudo-scalar-trans.s
@@ -1,5 +1,5 @@
# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
-# RUN: llvm-mca -mtriple=amdgcn -mcpu=gfx1200 --timeline --iterations=1 --timeline-max-cycles=0 < %s | FileCheck %s
+# RUN: llvm-mca -mtriple=amdgpu12.00 --timeline --iterations=1 --timeline-max-cycles=0 < %s | FileCheck %s
v_s_exp_f32 s0, s0
v_s_log_f32 s0, s0
diff --git a/llvm/test/tools/llvm-mca/AMDGPU/gfx9-retireooo.s b/llvm/test/tools/llvm-mca/AMDGPU/gfx9-retireooo.s
index c6f3b453c06e5..927f9f18b2ee3 100644
--- a/llvm/test/tools/llvm-mca/AMDGPU/gfx9-retireooo.s
+++ b/llvm/test/tools/llvm-mca/AMDGPU/gfx9-retireooo.s
@@ -1,5 +1,5 @@
# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
-# RUN: llvm-mca -mtriple=amdgcn -mcpu=gfx900 --timeline --iterations=1 --timeline-max-cycles=0 < %s | FileCheck %s
+# RUN: llvm-mca -mtriple=amdgpu9.00 --timeline --iterations=1 --timeline-max-cycles=0 < %s | FileCheck %s
s_load_dwordx2 s[2:3], s[0:1], 0x24
s_load_dwordx2 s[0:1], s[0:1], 0x2c
diff --git a/llvm/test/tools/llvm-mca/AMDGPU/gfx90a-mfma.s b/llvm/test/tools/llvm-mca/AMDGPU/gfx90a-mfma.s
index 6b4ddb3f000c2..73b8de23a682e 100644
--- a/llvm/test/tools/llvm-mca/AMDGPU/gfx90a-mfma.s
+++ b/llvm/test/tools/llvm-mca/AMDGPU/gfx90a-mfma.s
@@ -1,4 +1,4 @@
-# RUN: llvm-mca -mtriple=amdgcn -mcpu=gfx90a --timeline --iterations=1 --timeline-max-cycles=0 < %s | FileCheck %s
+# RUN: llvm-mca -mtriple=amdgpu9.0a --timeline --iterations=1 --timeline-max-cycles=0 < %s | FileCheck %s
# CHECK: Instruction Info:
# CHECK-NEXT: [1]: #uOps
diff --git a/llvm/test/tools/llvm-mca/AMDGPU/gfx942-mfma.s b/llvm/test/tools/llvm-mca/AMDGPU/gfx942-mfma.s
index 880946e937eb8..9a76a4bc7d640 100644
--- a/llvm/test/tools/llvm-mca/AMDGPU/gfx942-mfma.s
+++ b/llvm/test/tools/llvm-mca/AMDGPU/gfx942-mfma.s
@@ -1,4 +1,4 @@
-# RUN: llvm-mca -mtriple=amdgcn -mcpu=gfx942 --timeline --iterations=1 --timeline-max-cycles=0 < %s | FileCheck %s
+# RUN: llvm-mca -mtriple=amdgpu9.42 --timeline --iterations=1 --timeline-max-cycles=0 < %s | FileCheck %s
# CHECK: Iterations: 1
# CHECK: Instructions: 78
diff --git a/llvm/test/tools/llvm-mca/AMDGPU/gfx950.s b/llvm/test/tools/llvm-mca/AMDGPU/gfx950.s
index 33665b655086c..bcdcc54855b4b 100644
--- a/llvm/test/tools/llvm-mca/AMDGPU/gfx950.s
+++ b/llvm/test/tools/llvm-mca/AMDGPU/gfx950.s
@@ -1,4 +1,4 @@
-# RUN: llvm-mca -mtriple=amdgcn -mcpu=gfx950 --timeline --iterations=1 --timeline-max-cycles=0 < %s | FileCheck %s
+# RUN: llvm-mca -mtriple=amdgpu9.50 --timeline --iterations=1 --timeline-max-cycles=0 < %s | FileCheck %s
# CHECK: Iterations: 1
# CHECK: Instructions: 133
More information about the llvm-commits
mailing list