[InstCombine] Signed saturation patterns
[llvm-core.git] / test / MC / AMDGPU / sopp-gfx9.s
blobdbf5983cbcd60fd401157c6227508ad9d0b39fdf
1 // RUN: llvm-mc -arch=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 9
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]
83 s_sendmsg 10
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]