1 // RUN
: llvm-mc
-arch
=amdgcn
-mcpu
=gfx900
-show-encoding
%s | FileCheck
--check-prefix
=GFX9
%s
3 //===----------------------------------------------------------------------===//
5 //===----------------------------------------------------------------------===//
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]
20 // GFX9
: s_waitcnt vmcnt
(1) ; encoding
: [0x71,0x0f,0x8c,0xbf]
23 // GFX9
: s_waitcnt vmcnt
(9) ; encoding
: [0x79,0x0f,0x8c,0xbf]
26 // GFX9
: s_waitcnt expcnt
(2) ; encoding
: [0x2f,0xcf,0x8c,0xbf]
29 // GFX9
: s_waitcnt lgkmcnt
(3) ; encoding
: [0x7f,0xc3,0x8c,0xbf]
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]
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]
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]
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 //===----------------------------------------------------------------------===//
75 //===----------------------------------------------------------------------===//
78 // GFX9
: s_sendmsg sendmsg
(MSG_GS_ALLOC_REQ
) ; encoding
: [0x09,0x00,0x90,0xbf]
80 s_sendmsg sendmsg
(MSG_GS_ALLOC_REQ
)
81 // GFX9
: s_sendmsg sendmsg
(MSG_GS_ALLOC_REQ
) ; encoding
: [0x09,0x00,0x90,0xbf]
84 // GFX9
: s_sendmsg sendmsg
(MSG_GET_DOORBELL
) ; encoding
: [0x0a,0x00,0x90,0xbf]
86 s_sendmsg sendmsg
(MSG_GET_DOORBELL
)
87 // GFX9
: s_sendmsg sendmsg
(MSG_GET_DOORBELL
) ; encoding
: [0x0a,0x00,0x90,0xbf]