Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AMDGPU / sopp-gfx9.s
blobe760d497896fa56f79e3ba30b3318c457aa889de
1 // RUN: llvm-mc -triple=amdgcn -mcpu=gfx900 -show-encoding %s | FileCheck --check-prefix=GFX9 %s
3 //===----------------------------------------------------------------------===//
4 // s_waitcnt
5 //===----------------------------------------------------------------------===//
7 s_waitcnt 0
8 // GFX9: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0) ; encoding: [0x00,0x00,0x8c,0xbf]
10 s_waitcnt vmcnt(0) & expcnt(0) & lgkmcnt(0)
11 // GFX9: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0) ; encoding: [0x00,0x00,0x8c,0xbf]
13 s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
14 // GFX9: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0) ; encoding: [0x00,0x00,0x8c,0xbf]
16 s_waitcnt vmcnt(0), expcnt(0), lgkmcnt(0)
17 // GFX9: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0) ; encoding: [0x00,0x00,0x8c,0xbf]
19 s_waitcnt vmcnt(1)
20 // GFX9: s_waitcnt vmcnt(1) ; encoding: [0x71,0x0f,0x8c,0xbf]
22 s_waitcnt vmcnt(9)
23 // GFX9: s_waitcnt vmcnt(9) ; encoding: [0x79,0x0f,0x8c,0xbf]
25 s_waitcnt expcnt(2)
26 // GFX9: s_waitcnt expcnt(2) ; encoding: [0x2f,0xcf,0x8c,0xbf]
28 s_waitcnt lgkmcnt(3)
29 // GFX9: s_waitcnt lgkmcnt(3) ; encoding: [0x7f,0xc3,0x8c,0xbf]
31 s_waitcnt lgkmcnt(9)
32 // GFX9: s_waitcnt lgkmcnt(9) ; encoding: [0x7f,0xc9,0x8c,0xbf]
34 s_waitcnt vmcnt(0), expcnt(0)
35 // GFX9: s_waitcnt vmcnt(0) expcnt(0) ; encoding: [0x00,0x0f,0x8c,0xbf]
37 s_waitcnt vmcnt(15)
38 // GFX9: s_waitcnt vmcnt(15) ; encoding: [0x7f,0x0f,0x8c,0xbf]
40 s_waitcnt vmcnt(15) expcnt(6)
41 // GFX9: s_waitcnt vmcnt(15) expcnt(6) ; encoding: [0x6f,0x0f,0x8c,0xbf]
43 s_waitcnt vmcnt(15) lgkmcnt(14)
44 // GFX9: s_waitcnt vmcnt(15) lgkmcnt(14) ; encoding: [0x7f,0x0e,0x8c,0xbf]
46 s_waitcnt vmcnt(15) expcnt(6) lgkmcnt(14)
47 // GFX9: s_waitcnt vmcnt(15) expcnt(6) lgkmcnt(14) ; encoding: [0x6f,0x0e,0x8c,0xbf]
49 s_waitcnt vmcnt(31)
50 // GFX9: s_waitcnt vmcnt(31) ; encoding: [0x7f,0x4f,0x8c,0xbf]
52 s_waitcnt vmcnt(31) expcnt(6)
53 // GFX9: s_waitcnt vmcnt(31) expcnt(6) ; encoding: [0x6f,0x4f,0x8c,0xbf]
55 s_waitcnt vmcnt(31) lgkmcnt(14)
56 // GFX9: s_waitcnt vmcnt(31) lgkmcnt(14) ; encoding: [0x7f,0x4e,0x8c,0xbf]
58 s_waitcnt vmcnt(31) expcnt(6) lgkmcnt(14)
59 // GFX9: s_waitcnt vmcnt(31) expcnt(6) lgkmcnt(14) ; encoding: [0x6f,0x4e,0x8c,0xbf]
61 s_waitcnt vmcnt(62)
62 // GFX9: s_waitcnt vmcnt(62) ; encoding: [0x7e,0xcf,0x8c,0xbf]
64 s_waitcnt vmcnt(62) expcnt(6)
65 // GFX9: s_waitcnt vmcnt(62) expcnt(6) ; encoding: [0x6e,0xcf,0x8c,0xbf]
67 s_waitcnt vmcnt(62) lgkmcnt(14)
68 // GFX9: s_waitcnt vmcnt(62) lgkmcnt(14) ; encoding: [0x7e,0xce,0x8c,0xbf]
70 s_waitcnt vmcnt(62) expcnt(6) lgkmcnt(14)
71 // GFX9: s_waitcnt vmcnt(62) expcnt(6) lgkmcnt(14) ; encoding: [0x6e,0xce,0x8c,0xbf]
73 //===----------------------------------------------------------------------===//
74 // s_sendmsg
75 //===----------------------------------------------------------------------===//
77 s_sendmsg 5
78 // GFX9: s_sendmsg sendmsg(MSG_STALL_WAVE_GEN) ; encoding: [0x05,0x00,0x90,0xbf]
80 s_sendmsg sendmsg(MSG_STALL_WAVE_GEN)
81 // GFX9: s_sendmsg sendmsg(MSG_STALL_WAVE_GEN) ; encoding: [0x05,0x00,0x90,0xbf]
83 s_sendmsg 6
84 // GFX9: s_sendmsg sendmsg(MSG_HALT_WAVES) ; encoding: [0x06,0x00,0x90,0xbf]
86 s_sendmsg sendmsg(MSG_HALT_WAVES)
87 // GFX9: s_sendmsg sendmsg(MSG_HALT_WAVES) ; encoding: [0x06,0x00,0x90,0xbf]
89 s_sendmsg 7
90 // GFX9: s_sendmsg sendmsg(MSG_ORDERED_PS_DONE) ; encoding: [0x07,0x00,0x90,0xbf]
92 s_sendmsg sendmsg(MSG_ORDERED_PS_DONE)
93 // GFX9: s_sendmsg sendmsg(MSG_ORDERED_PS_DONE) ; encoding: [0x07,0x00,0x90,0xbf]
95 s_sendmsg 8
96 // GFX9: s_sendmsg sendmsg(MSG_EARLY_PRIM_DEALLOC) ; encoding: [0x08,0x00,0x90,0xbf]
98 s_sendmsg sendmsg(MSG_EARLY_PRIM_DEALLOC)
99 // GFX9: s_sendmsg sendmsg(MSG_EARLY_PRIM_DEALLOC) ; encoding: [0x08,0x00,0x90,0xbf]
101 s_sendmsg 9
102 // GFX9: s_sendmsg sendmsg(MSG_GS_ALLOC_REQ) ; encoding: [0x09,0x00,0x90,0xbf]
104 s_sendmsg sendmsg(MSG_GS_ALLOC_REQ)
105 // GFX9: s_sendmsg sendmsg(MSG_GS_ALLOC_REQ) ; encoding: [0x09,0x00,0x90,0xbf]
107 s_sendmsg 10
108 // GFX9: s_sendmsg sendmsg(MSG_GET_DOORBELL) ; encoding: [0x0a,0x00,0x90,0xbf]
110 s_sendmsg sendmsg(MSG_GET_DOORBELL)
111 // GFX9: s_sendmsg sendmsg(MSG_GET_DOORBELL) ; encoding: [0x0a,0x00,0x90,0xbf]