Skip to content

Commit cc08826

Browse files
authored
[NFC][AMDGPU] Move buffer_load lds test from gfx11_asm_mubuf.s to gfx11_asm_mubuf_err.s (#132938)
The test checked that the lds flag for buffer_load instructions was not supported. These should be moved to the _err counterpart of the tests.
1 parent 9fb7924 commit cc08826

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

llvm/test/MC/AMDGPU/gfx11_asm_mubuf.s

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1100 -show-encoding %s | FileCheck --check-prefix=GFX11 %s
2-
// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1100 -show-encoding %s 2>&1 | FileCheck --check-prefixes=GFX11-ERR --implicit-check-not=error: %s
1+
// RUN: llvm-mc -triple=amdgcn -mcpu=gfx1100 -show-encoding %s | FileCheck --check-prefix=GFX11 %s
32

43
buffer_gl0_inv
54
// GFX11: encoding: [0x00,0x00,0xac,0xe0,0x00,0x00,0x00,0x00]
@@ -64,9 +63,6 @@ buffer_load_b32 v5, off, s[8:11], s3 offset:4095 dlc
6463
buffer_load_b32 v5, off, s[8:11], s3 offset:4095 glc slc dlc
6564
// GFX11: encoding: [0xff,0x7f,0x50,0xe0,0x00,0x05,0x02,0x03]
6665

67-
buffer_load_b32 v5, off, s[8:11], s3 offset:4095 lds
68-
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
69-
7066
buffer_load_b64 v[5:6], off, s[8:11], s3 offset:4095
7167
// GFX11: encoding: [0xff,0x0f,0x54,0xe0,0x00,0x05,0x02,0x03]
7268

llvm/test/MC/AMDGPU/gfx11_asm_mubuf_err.s

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ buffer_load_b128 v[5:8], v0, null, s3 offen offset:4095
9999
buffer_load_b32 v5, v0, null, s3 offen offset:4095
100100
// NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
101101

102+
buffer_load_b32 v5, off, s[8:11], s3 offset:4095 lds
103+
// NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
104+
102105
buffer_store_b64 v[1:2], v0, null, s4 idxen offset:4095
103106
// NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
104107

0 commit comments

Comments
 (0)