[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / AMDGPU / gfx7_asm_sopp.s
blob7e66c0cfeadb3293d5f16a19d67b36640ea693c5
1 // RUN: llvm-mc -arch=amdgcn -mcpu=bonaire -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_cbranch_scc0 12609
19 // CHECK: [0x41,0x31,0x84,0xbf]
21 s_cbranch_scc0 49617
22 // CHECK: [0xd1,0xc1,0x84,0xbf]
24 s_cbranch_scc1 12609
25 // CHECK: [0x41,0x31,0x85,0xbf]
27 s_cbranch_scc1 49617
28 // CHECK: [0xd1,0xc1,0x85,0xbf]
30 s_cbranch_vccz 12609
31 // CHECK: [0x41,0x31,0x86,0xbf]
33 s_cbranch_vccz 49617
34 // CHECK: [0xd1,0xc1,0x86,0xbf]
36 s_cbranch_vccnz 12609
37 // CHECK: [0x41,0x31,0x87,0xbf]
39 s_cbranch_vccnz 49617
40 // CHECK: [0xd1,0xc1,0x87,0xbf]
42 s_cbranch_execz 12609
43 // CHECK: [0x41,0x31,0x88,0xbf]
45 s_cbranch_execz 49617
46 // CHECK: [0xd1,0xc1,0x88,0xbf]
48 s_cbranch_execnz 12609
49 // CHECK: [0x41,0x31,0x89,0xbf]
51 s_cbranch_execnz 49617
52 // CHECK: [0xd1,0xc1,0x89,0xbf]
54 s_barrier
55 // CHECK: [0x00,0x00,0x8a,0xbf]
57 s_setkill 0x3141
58 // CHECK: [0x41,0x31,0x8b,0xbf]
60 s_setkill 0xc1d1
61 // CHECK: [0xd1,0xc1,0x8b,0xbf]
63 s_waitcnt 0x3141
64 // CHECK: [0x41,0x31,0x8c,0xbf]
66 s_waitcnt 0xc1d1
67 // CHECK: [0xd1,0xc1,0x8c,0xbf]
69 s_sethalt 0x3141
70 // CHECK: [0x41,0x31,0x8d,0xbf]
72 s_sethalt 0xc1d1
73 // CHECK: [0xd1,0xc1,0x8d,0xbf]
75 s_sleep 0x3141
76 // CHECK: [0x41,0x31,0x8e,0xbf]
78 s_sleep 0xc1d1
79 // CHECK: [0xd1,0xc1,0x8e,0xbf]
81 s_setprio 0x3141
82 // CHECK: [0x41,0x31,0x8f,0xbf]
84 s_setprio 0xc1d1
85 // CHECK: [0xd1,0xc1,0x8f,0xbf]
87 s_sendmsg 0x3141
88 // CHECK: [0x41,0x31,0x90,0xbf]
90 s_sendmsg 0xc1d1
91 // CHECK: [0xd1,0xc1,0x90,0xbf]
93 s_sendmsghalt 0x3141
94 // CHECK: [0x41,0x31,0x91,0xbf]
96 s_sendmsghalt 0xc1d1
97 // CHECK: [0xd1,0xc1,0x91,0xbf]
99 s_trap 0x3141
100 // CHECK: [0x41,0x31,0x92,0xbf]
102 s_trap 0xc1d1
103 // CHECK: [0xd1,0xc1,0x92,0xbf]
105 s_icache_inv
106 // CHECK: [0x00,0x00,0x93,0xbf]
108 s_incperflevel 0x3141
109 // CHECK: [0x41,0x31,0x94,0xbf]
111 s_incperflevel 0xc1d1
112 // CHECK: [0xd1,0xc1,0x94,0xbf]
114 s_decperflevel 0x3141
115 // CHECK: [0x41,0x31,0x95,0xbf]
117 s_decperflevel 0xc1d1
118 // CHECK: [0xd1,0xc1,0x95,0xbf]
120 s_ttracedata
121 // CHECK: [0x00,0x00,0x96,0xbf]
123 s_cbranch_cdbgsys 12609
124 // CHECK: [0x41,0x31,0x97,0xbf]
126 s_cbranch_cdbgsys 49617
127 // CHECK: [0xd1,0xc1,0x97,0xbf]
129 s_cbranch_cdbguser 12609
130 // CHECK: [0x41,0x31,0x98,0xbf]
132 s_cbranch_cdbguser 49617
133 // CHECK: [0xd1,0xc1,0x98,0xbf]
135 s_cbranch_cdbgsys_or_user 12609
136 // CHECK: [0x41,0x31,0x99,0xbf]
138 s_cbranch_cdbgsys_or_user 49617
139 // CHECK: [0xd1,0xc1,0x99,0xbf]
141 s_cbranch_cdbgsys_and_user 12609
142 // CHECK: [0x41,0x31,0x9a,0xbf]
144 s_cbranch_cdbgsys_and_user 49617
145 // CHECK: [0xd1,0xc1,0x9a,0xbf]