Skip to content

Commit 6ed7a8e

Browse files
authored
[AMDGPU] Remove s_subvector_loop_begin/end for GFX12 (#74451)
1 parent f465a2c commit 6ed7a8e

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

llvm/lib/Target/AMDGPU/SOPInstructions.td

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,10 +1100,14 @@ let SubtargetPredicate = isGFX10Plus in {
11001100
"$simm16"> {
11011101
let has_sdst = 0;
11021102
}
1103+
} // End SubtargetPredicate = isGFX10Plus
11031104

1105+
let SubtargetPredicate = isGFX10GFX11 in {
11041106
def S_SUBVECTOR_LOOP_BEGIN : SOPK_32_BR<"s_subvector_loop_begin">;
11051107
def S_SUBVECTOR_LOOP_END : SOPK_32_BR<"s_subvector_loop_end">;
1108+
} // End SubtargetPredicate = isGFX10GFX11
11061109

1110+
let SubtargetPredicate = isGFX10Plus in {
11071111
def S_WAITCNT_VSCNT : SOPK_WAITCNT<"s_waitcnt_vscnt">;
11081112
def S_WAITCNT_VMCNT : SOPK_WAITCNT<"s_waitcnt_vmcnt">;
11091113
def S_WAITCNT_EXPCNT : SOPK_WAITCNT<"s_waitcnt_expcnt">;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx1200 %s 2>&1 | FileCheck --implicit-check-not=error: %s
2+
3+
//===----------------------------------------------------------------------===//
4+
// Unsupported instructions.
5+
//===----------------------------------------------------------------------===//
6+
7+
s_subvector_loop_begin s0, 0x1234
8+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
9+
10+
s_subvector_loop_end s0, 0x1234
11+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU

0 commit comments

Comments
 (0)