[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / AMDGPU / gfx8_asm_sopp.s
blob3aedcb08d01225fa43eeb81edfbaed2e76fd2e4d
1 // RUN: llvm-mc -arch=amdgcn -mcpu=tonga -show-encoding %s | FileCheck %s
3 s_nop 0x3141
4 // CHECK: [0x41,0x31,0x80,0xbf]
6 s_nop 0xc1d1
7 // CHECK: [0xd1,0xc1,0x80,0xbf]
9 s_endpgm
10 // CHECK: [0x00,0x00,0x81,0xbf]
12 s_branch 12609
13 // CHECK: [0x41,0x31,0x82,0xbf]
15 s_branch 49617
16 // CHECK: [0xd1,0xc1,0x82,0xbf]
18 s_wakeup
19 // CHECK: [0x00,0x00,0x83,0xbf]
21 s_cbranch_scc0 12609
22 // CHECK: [0x41,0x31,0x84,0xbf]
24 s_cbranch_scc0 49617
25 // CHECK: [0xd1,0xc1,0x84,0xbf]
27 s_cbranch_scc1 12609
28 // CHECK: [0x41,0x31,0x85,0xbf]
30 s_cbranch_scc1 49617
31 // CHECK: [0xd1,0xc1,0x85,0xbf]
33 s_cbranch_vccz 12609
34 // CHECK: [0x41,0x31,0x86,0xbf]
36 s_cbranch_vccz 49617
37 // CHECK: [0xd1,0xc1,0x86,0xbf]
39 s_cbranch_vccnz 12609
40 // CHECK: [0x41,0x31,0x87,0xbf]
42 s_cbranch_vccnz 49617
43 // CHECK: [0xd1,0xc1,0x87,0xbf]
45 s_cbranch_execz 12609
46 // CHECK: [0x41,0x31,0x88,0xbf]
48 s_cbranch_execz 49617
49 // CHECK: [0xd1,0xc1,0x88,0xbf]
51 s_cbranch_execnz 12609
52 // CHECK: [0x41,0x31,0x89,0xbf]
54 s_cbranch_execnz 49617
55 // CHECK: [0xd1,0xc1,0x89,0xbf]
57 s_barrier
58 // CHECK: [0x00,0x00,0x8a,0xbf]
60 s_setkill 0x3141
61 // CHECK: [0x41,0x31,0x8b,0xbf]
63 s_setkill 0xc1d1
64 // CHECK: [0xd1,0xc1,0x8b,0xbf]
66 s_waitcnt 0x3141
67 // CHECK: [0x41,0x31,0x8c,0xbf]
69 s_waitcnt 0xc1d1
70 // CHECK: [0xd1,0xc1,0x8c,0xbf]
72 s_sethalt 0x3141
73 // CHECK: [0x41,0x31,0x8d,0xbf]
75 s_sethalt 0xc1d1
76 // CHECK: [0xd1,0xc1,0x8d,0xbf]
78 s_sleep 0x3141
79 // CHECK: [0x41,0x31,0x8e,0xbf]
81 s_sleep 0xc1d1
82 // CHECK: [0xd1,0xc1,0x8e,0xbf]
84 s_setprio 0x3141
85 // CHECK: [0x41,0x31,0x8f,0xbf]
87 s_setprio 0xc1d1
88 // CHECK: [0xd1,0xc1,0x8f,0xbf]
90 s_sendmsg 0x3141
91 // CHECK: [0x41,0x31,0x90,0xbf]
93 s_sendmsg 0xc1d1
94 // CHECK: [0xd1,0xc1,0x90,0xbf]
96 s_sendmsghalt 0x3141
97 // CHECK: [0x41,0x31,0x91,0xbf]
99 s_sendmsghalt 0xc1d1
100 // CHECK: [0xd1,0xc1,0x91,0xbf]
102 s_trap 0x3141
103 // CHECK: [0x41,0x31,0x92,0xbf]
105 s_trap 0xc1d1
106 // CHECK: [0xd1,0xc1,0x92,0xbf]
108 s_icache_inv
109 // CHECK: [0x00,0x00,0x93,0xbf]
111 s_incperflevel 0x3141
112 // CHECK: [0x41,0x31,0x94,0xbf]
114 s_incperflevel 0xc1d1
115 // CHECK: [0xd1,0xc1,0x94,0xbf]
117 s_decperflevel 0x3141
118 // CHECK: [0x41,0x31,0x95,0xbf]
120 s_decperflevel 0xc1d1
121 // CHECK: [0xd1,0xc1,0x95,0xbf]
123 s_ttracedata
124 // CHECK: [0x00,0x00,0x96,0xbf]
126 s_cbranch_cdbgsys 12609
127 // CHECK: [0x41,0x31,0x97,0xbf]
129 s_cbranch_cdbgsys 49617
130 // CHECK: [0xd1,0xc1,0x97,0xbf]
132 s_cbranch_cdbguser 12609
133 // CHECK: [0x41,0x31,0x98,0xbf]
135 s_cbranch_cdbguser 49617
136 // CHECK: [0xd1,0xc1,0x98,0xbf]
138 s_cbranch_cdbgsys_or_user 12609
139 // CHECK: [0x41,0x31,0x99,0xbf]
141 s_cbranch_cdbgsys_or_user 49617
142 // CHECK: [0xd1,0xc1,0x99,0xbf]
144 s_cbranch_cdbgsys_and_user 12609
145 // CHECK: [0x41,0x31,0x9a,0xbf]
147 s_cbranch_cdbgsys_and_user 49617
148 // CHECK: [0xd1,0xc1,0x9a,0xbf]
150 s_endpgm_saved
151 // CHECK: [0x00,0x00,0x9b,0xbf]
153 s_set_gpr_idx_off
154 // CHECK: [0x00,0x00,0x9c,0xbf]
156 s_set_gpr_idx_mode 0x0
157 // CHECK: [0x00,0x00,0x9d,0xbf]
159 s_set_gpr_idx_mode 0x1
160 // CHECK: [0x01,0x00,0x9d,0xbf]
162 s_set_gpr_idx_mode 0xF
163 // CHECK: [0x0f,0x00,0x9d,0xbf]