Skip to content

[NFC][AMDGPU] Move buffer_load lds test from gfx11_asm_mubuf.s to gfx11_asm_mubuf_err.s #132938

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions llvm/test/MC/AMDGPU/gfx11_asm_mubuf.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1100 -show-encoding %s | FileCheck --check-prefix=GFX11 %s
// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1100 -show-encoding %s 2>&1 | FileCheck --check-prefixes=GFX11-ERR --implicit-check-not=error: %s
// RUN: llvm-mc -triple=amdgcn -mcpu=gfx1100 -show-encoding %s | FileCheck --check-prefix=GFX11 %s

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

buffer_load_b32 v5, off, s[8:11], s3 offset:4095 lds
// GFX11-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction

buffer_load_b64 v[5:6], off, s[8:11], s3 offset:4095
// GFX11: encoding: [0xff,0x0f,0x54,0xe0,0x00,0x05,0x02,0x03]

Expand Down
3 changes: 3 additions & 0 deletions llvm/test/MC/AMDGPU/gfx11_asm_mubuf_err.s
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ buffer_load_b128 v[5:8], v0, null, s3 offen offset:4095
buffer_load_b32 v5, v0, null, s3 offen offset:4095
// NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction

buffer_load_b32 v5, off, s[8:11], s3 offset:4095 lds
// NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction

buffer_store_b64 v[1:2], v0, null, s4 idxen offset:4095
// NOGFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction

Expand Down