Skip to content

Commit 8930ae1

Browse files
kosarevAlexisPerry
authored andcommitted
[AMDGPU] Fix MC/Disassembler/AMDGPU/decode-err.txt. (llvm#96621)
It fails downstream now that llvm#95237 removed flushing the output stream on printing every instruction.
1 parent 15efcdd commit 8930ae1

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

llvm/test/MC/Disassembler/AMDGPU/decode-err.txt

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
# RUN: llvm-mc -triple=amdgcn -mcpu=gfx900 -disassemble -show-encoding < %s 2>&1 | FileCheck -check-prefix=GCN %s
2-
# RUN: llvm-mc -triple=amdgcn -mcpu=gfx1100 -disassemble -show-encoding < %s 2>&1 | FileCheck -check-prefixes=GFX11,W32 %s
3-
# RUN: llvm-mc -triple=amdgcn -mcpu=gfx1100 -mattr=-WavefrontSize32,+WavefrontSize64 -disassemble -show-encoding < %s 2>&1 | FileCheck -check-prefixes=GFX11,W64 %s
4-
# RUN: llvm-mc -triple=amdgcn -mcpu=gfx1200 -disassemble -show-encoding < %s 2>&1 | FileCheck -check-prefix=GFX12 %s
1+
# RUN: llvm-mc -triple=amdgcn -mcpu=gfx900 -disassemble -show-encoding -filetype=null < %s 2>&1 | FileCheck -check-prefix=GCN-ERR %s
2+
# RUN: llvm-mc -triple=amdgcn -mcpu=gfx1100 -disassemble -show-encoding < %s 2>&1 | FileCheck -check-prefixes=W32 %s
3+
# RUN: llvm-mc -triple=amdgcn -mcpu=gfx1100 -mattr=-WavefrontSize32,+WavefrontSize64 -disassemble -show-encoding < %s 2>&1 | FileCheck -check-prefixes=W64 %s
4+
# RUN: llvm-mc -triple=amdgcn -mcpu=gfx1100 -disassemble -show-encoding -filetype=null < %s 2>&1 | FileCheck -check-prefix=GFX11-ERR %s
5+
# RUN: llvm-mc -triple=amdgcn -mcpu=gfx1200 -disassemble -show-encoding -filetype=null < %s 2>&1 | FileCheck -check-prefix=GFX12-ERR %s
56

6-
# GCN: [[@LINE+1]]:1: warning: invalid instruction encoding
7+
# GCN-ERR: [[@LINE+1]]:1: warning: invalid instruction encoding
78
0xdf,0x00,0x00,0x02
89

910
# this is s_singleuse_vdst 0x1234, which is only valid on gfx1150
10-
# GFX11: [[@LINE+1]]:1: warning: invalid instruction encoding
11+
# GFX11-ERR: [[@LINE+1]]:1: warning: invalid instruction encoding
1112
0x34,0x12,0x93,0xbf
1213

1314
# this is s_waitcnt_vscnt exec_hi, 0x1234, which is valid on gfx11, but not on gfx12
14-
# GFX12: [[@LINE+1]]:1: warning: invalid instruction encoding
15+
# GFX12-ERR: [[@LINE+1]]:1: warning: invalid instruction encoding
1516
0x34,0x12,0x7f,0xbc
1617

1718
# W32: v_dual_add_f32 v5, 0xaf123456, v2 :: v_dual_fmaak_f32 v6, v3, v1, 0xaf123456 ; encoding: [0xff,0x04,0x02,0xc9,0x03,0x03,0x06,0x05,0x56,0x34,0x12,0xaf]
@@ -39,11 +40,11 @@
3940
0x10,0x40,0x40,0xcc,0x00,0x11,0x02,0x18 # src2 sgpr0
4041

4142
# this is ds_add_f32 with gds bit which is not valid on gfx12+
42-
# GFX12: [[@LINE+1]]:1: warning: invalid instruction encoding
43+
# GFX12-ERR: [[@LINE+1]]:1: warning: invalid instruction encoding
4344
0x00,0x00,0x56,0xd8,0x00,0x01,0x00,0x00
4445

4546
# this is image_msaa_load where samp field for gfx12 VSAMPLE is not all zeros
46-
# GFX12: [[@LINE+1]]:1: warning: invalid instruction encoding
47+
# GFX12-ERR: [[@LINE+1]]:1: warning: invalid instruction encoding
4748
0x06,0x00,0x46,0xe4,0x01,0x10,0x80,0x00,0x05,0x06,0x07,0x00
4849

4950
# This is ds_read_b32 with gds bit which is not valid on gfx90a.

0 commit comments

Comments
 (0)