[llvm] [AMDGPU] Remove s_cbranch_cdbg* for GFX12 (PR #75496)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 14 09:18:30 PST 2023


https://github.com/jayfoad created https://github.com/llvm/llvm-project/pull/75496

No GFX12 encoding was added for these, so this patch just adds tests
that they are not recognized by the assembler.


>From 476187bab8f84884e7ba73c723293d85b6057e63 Mon Sep 17 00:00:00 2001
From: Jay Foad <jay.foad at amd.com>
Date: Thu, 14 Dec 2023 16:51:44 +0000
Subject: [PATCH] [AMDGPU] Remove s_cbranch_cdbg* for GFX12

No GFX12 encoding was added for these, so this patch just adds tests
that they are not recognized by the assembler.
---
 llvm/test/MC/AMDGPU/gfx12_unsupported.s | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/llvm/test/MC/AMDGPU/gfx12_unsupported.s b/llvm/test/MC/AMDGPU/gfx12_unsupported.s
index e835710a69fe85..4f6758b6f6786d 100644
--- a/llvm/test/MC/AMDGPU/gfx12_unsupported.s
+++ b/llvm/test/MC/AMDGPU/gfx12_unsupported.s
@@ -10,6 +10,18 @@ s_subvector_loop_begin s0, 0x1234
 s_subvector_loop_end s0, 0x1234
 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
 
+s_cbranch_cdbgsys 0
+// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
+
+s_cbranch_cdbguser 0
+// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
+
+s_cbranch_cdbgsys_or_user 0
+// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
+
+s_cbranch_cdbgsys_and_user 0
+// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
+
 ds_cmpstore_f32 v0, v1, v2
 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
 



More information about the llvm-commits mailing list