• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llvm-mc --disassemble %s -triple=sparc-unknown-linux | FileCheck %s
2
3# CHECK: add %g0, %g0, %g0
40x80 0x00 0x00 0x00
5
6# CHECK: add %g1, %g2, %g3
70x86 0x00 0x40 0x02
8
9# CHECK: add %o0, %o1, %l0
100xa0 0x02 0x00 0x09
11
12# CHECK: add %o0, 10,  %l0
130xa0 0x02 0x20 0x0a
14
15# CHECK: addcc %g1, %g2, %g3
160x86 0x80 0x40 0x02
17
18# CHECK: addxcc %g1, %g2, %g3
190x86 0xc0 0x40 0x02
20
21# CHECK: udiv %g1, %g2, %g3
220x86 0x70 0x40 0x02
23
24# CHECK: sdiv %g1, %g2, %g3
250x86 0x78 0x40 0x02
26
27# CHECK: and %g1, %g2, %g3
280x86 0x08 0x40 0x02
29
30# CHECK: andn %g1, %g2, %g3
310x86 0x28 0x40 0x02
32
33# CHECK: or %g1, %g2, %g3
340x86 0x10 0x40 0x02
35
36# CHECK: orn %g1, %g2, %g3
370x86 0x30 0x40 0x02
38
39# CHECK: xor %g1, %g2, %g3
400x86 0x18 0x40 0x02
41
42# CHECK: xnor %g1, %g2, %g3
430x86 0x38 0x40 0x02
44
45# CHECK: umul %g1, %g2, %g3
460x86 0x50 0x40 0x02
47
48# CHECK: smul %g1, %g2, %g3
490x86 0x58 0x40 0x02
50
51# CHECK: nop
520x01 0x00 0x00 0x00
53
54# CHECK: sethi 10, %l0
550x21 0x00 0x00 0x0a
56
57# CHECK: sll %g1, %g2, %g3
580x87 0x28 0x40 0x02
59
60# CHECK: sll %g1, 31, %g3
610x87 0x28 0x60 0x1f
62
63# CHECK: srl %g1, %g2, %g3
640x87 0x30 0x40 0x02
65
66# CHECK: srl %g1, 31, %g3
670x87 0x30 0x60 0x1f
68
69# CHECK: sra %g1, %g2, %g3
700x87 0x38 0x40 0x02
71
72# CHECK: sra %g1, 31, %g3
730x87 0x38 0x60 0x1f
74
75# CHECK: sub %g1, %g2, %g3
760x86 0x20 0x40 0x02
77
78# CHECK: subcc %g1, %g2, %g3
790x86 0xa0 0x40 0x02
80
81# CHECK: subxcc %g1, %g2, %g3
820x86 0xe0 0x40 0x02
83
84# CHECK: ba 4194303
850x10 0xbf 0xff 0xff
86
87# CHECK: bne 4194303
880x12 0xbf 0xff 0xff
89
90# CHECK: be 4194303
910x02 0xbf 0xff 0xff
92
93# CHECK: bg 4194303
940x14 0xbf 0xff 0xff
95
96# CHECK: ble 4194303
970x04 0xbf 0xff 0xff
98
99# CHECK: bge 4194303
1000x16 0xbf 0xff 0xff
101
102# CHECK: bl 4194303
1030x06 0xbf 0xff 0xff
104
105# CHECK: bgu 4194303
1060x18 0xbf 0xff 0xff
107
108# CHECK: bleu 4194303
1090x08 0xbf 0xff 0xff
110
111# CHECK: bcc 4194303
1120x1a 0xbf 0xff 0xff
113
114# CHECK: bcs 4194303
1150x0a 0xbf 0xff 0xff
116
117# CHECK: bpos 4194303
1180x1c 0xbf 0xff 0xff
119
120# CHECK: bneg 4194303
1210x0c 0xbf 0xff 0xff
122
123# CHECK: bvc 4194303
1240x1e 0xbf 0xff 0xff
125
126# CHECK: bvs 4194303
1270x0e 0xbf 0xff 0xff
128
129# CHECK: fbu 4194303
1300x0f 0xbf 0xff 0xff
131
132# CHECK: fbg 4194303
1330x0d 0xbf 0xff 0xff
134
135# CHECK: fbug 4194303
1360x0b 0xbf 0xff 0xff
137
138# CHECK: fbl 4194303
1390x09 0xbf 0xff 0xff
140
141# CHECK: fbul 4194303
1420x07 0xbf 0xff 0xff
143
144# CHECK: fblg 4194303
1450x05 0xbf 0xff 0xff
146
147# CHECK: fbne 4194303
1480x03 0xbf 0xff 0xff
149
150# CHECK: fbe 4194303
1510x13 0xbf 0xff 0xff
152
153# CHECK: fbue 4194303
1540x15 0xbf 0xff 0xff
155
156# CHECK: fbge 4194303
1570x17 0xbf 0xff 0xff
158
159# CHECK: fbuge 4194303
1600x19 0xbf 0xff 0xff
161
162# CHECK: fble 4194303
1630x1b 0xbf 0xff 0xff
164
165# CHECK: fbule 4194303
1660x1d 0xbf 0xff 0xff
167
168# CHECK: fbo 4194303
1690x1f 0xbf 0xff 0xff
170
171# CHECK: restore
1720x81 0xe8 0x00 0x00
173
174# CHECK: call 16
1750x40 0x00 0x00 0x04
176
177# CHECK: add %g1, -10, %g2
1780x84 0x00 0x7f 0xf6
179
180# CHECK: save %sp, -196, %sp
1810x9d 0xe3 0xbf 0x3c
182
183# CHECK: cmp %g1, -2
1840x80 0xa0 0x7f 0xfe
185
186# CHECK: unimp 12
1870x00 0x00 0x00 0x0c
188
189# CHECK: jmp %g1+12
1900x81,0xc0,0x60,0x0c
191
192# CHECK: retl
1930x81 0xc3 0xe0 0x08
194
195# CHECK: ret
1960x81,0xc7,0xe0,0x08
197
198# CHECK:  rett %i7+8
1990x81 0xcf 0xe0 0x08
200
201# CHECK: stbar
2020x81 0x43 0xc0 0x00
203