1 ! RUN
: llvm-mc
%s
-arch
=sparc
-show-encoding | FileCheck
%s
2 ! RUN
: llvm-mc
%s
-arch
=sparcv9
-show-encoding | FileCheck
%s
4 ! CHECK
: add %g0
, %g0
, %g0
! encoding
: [0x80,0x00,0x00,0x00]
6 ! CHECK
: add %g1
, %g2
, %g3
! encoding
: [0x86,0x00,0x40,0x02]
8 ! CHECK
: add %o0
, %o1
, %l0
! encoding
: [0xa0,0x02,0x00,0x09]
10 ! CHECK
: add %o0
, 10, %l0
! encoding
: [0xa0,0x02,0x20,0x0a]
13 ! CHECK
: addcc
%g1
, %g2
, %g3
! encoding
: [0x86,0x80,0x40,0x02]
16 ! CHECK
: addxcc
%g1
, %g2
, %g3
! encoding
: [0x86,0xc0,0x40,0x02]
19 ! CHECK
: udiv
%g1
, %g2
, %g3
! encoding
: [0x86,0x70,0x40,0x02]
22 ! CHECK
: sdiv
%g1
, %g2
, %g3
! encoding
: [0x86,0x78,0x40,0x02]
25 ! CHECK
: and %g1
, %g2
, %g3
! encoding
: [0x86,0x08,0x40,0x02]
27 ! CHECK
: andn
%g1
, %g2
, %g3
! encoding
: [0x86,0x28,0x40,0x02]
29 ! CHECK
: or %g1
, %g2
, %g3
! encoding
: [0x86,0x10,0x40,0x02]
31 ! CHECK
: orn
%g1
, %g2
, %g3
! encoding
: [0x86,0x30,0x40,0x02]
33 ! CHECK
: xor %g1
, %g2
, %g3
! encoding
: [0x86,0x18,0x40,0x02]
35 ! CHECK
: xnor
%g1
, %g2
, %g3
! encoding
: [0x86,0x38,0x40,0x02]
38 ! CHECK
: umul
%g1
, %g2
, %g3
! encoding
: [0x86,0x50,0x40,0x02]
41 ! CHECK
: smul
%g1
, %g2
, %g3
! encoding
: [0x86,0x58,0x40,0x02]
44 ! CHECK
: nop ! encoding
: [0x01,0x00,0x00,0x00]
47 ! CHECK
: sethi
10, %l0
! encoding
: [0x21,0x00,0x00,0x0a]
50 ! CHECK
: sll
%g1
, %g2
, %g3
! encoding
: [0x87,0x28,0x40,0x02]
52 ! CHECK
: sll
%g1
, 31, %g3
! encoding
: [0x87,0x28,0x60,0x1f]
55 ! CHECK
: srl
%g1
, %g2
, %g3
! encoding
: [0x87,0x30,0x40,0x02]
57 ! CHECK
: srl
%g1
, 31, %g3
! encoding
: [0x87,0x30,0x60,0x1f]
60 ! CHECK
: sra %g1
, %g2
, %g3
! encoding
: [0x87,0x38,0x40,0x02]
62 ! CHECK
: sra %g1
, 31, %g3
! encoding
: [0x87,0x38,0x60,0x1f]
65 ! CHECK
: sub %g1
, %g2
, %g3
! encoding
: [0x86,0x20,0x40,0x02]
67 ! CHECK
: subcc
%g1
, %g2
, %g3
! encoding
: [0x86,0xa0,0x40,0x02]
70 ! CHECK
: subxcc
%g1
, %g2
, %g3
! encoding
: [0x86,0xe0,0x40,0x02]
73 ! CHECK
: mov
%g1
, %g3
! encoding
: [0x86,0x10,0x00,0x01]
76 ! CHECK
: mov
255, %g3
! encoding
: [0x86,0x10,0x20,0xff]
79 ! CHECK
: restore
%g0
, %g0
, %g1
! encoding
: [0x83,0xe8,0x00,0x00]
82 ! CHECK
: addx
%g2
, %g1
, %g3
! encoding
: [0x86,0x40,0x80,0x01]
85 ! CHECK
: subx
%g2
, %g1
, %g3
! encoding
: [0x86,0x60,0x80,0x01]
88 ! CHECK
: umulcc
%g2
, %g1
, %g3
! encoding
: [0x86,0xd0,0x80,0x01]
91 ! CHECK
: smulcc
%g2
, %g1
, %g3
! encoding
: [0x86,0xd8,0x80,0x01]
94 ! CHECK
: mulscc
%g2
, %g1
, %g3
! encoding
: [0x87,0x20,0x80,0x01]
97 ! CHECK
: mulscc
%g2
, 254, %g3
! encoding
: [0x87,0x20,0xa0,0xfe]
100 ! CHECK
: udivcc
%g2
, %g1
, %g3
! encoding
: [0x86,0xf0,0x80,0x01]
103 ! CHECK
: sdivcc
%g2
, %g1
, %g3
! encoding
: [0x86,0xf8,0x80,0x01]
106 ! CHECK
: andcc
%g2
, %g1
, %g3
! encoding
: [0x86,0x88,0x80,0x01]
109 ! CHECK
: andncc
%g2
, %g1
, %g3
! encoding
: [0x86,0xa8,0x80,0x01]
112 ! CHECK
: orcc
%g2
, %g1
, %g3
! encoding
: [0x86,0x90,0x80,0x01]
115 ! CHECK
: orncc
%g2
, %g1
, %g3
! encoding
: [0x86,0xb0,0x80,0x01]
118 ! CHECK
: xorcc
%g2
, %g1
, %g3
! encoding
: [0x86,0x98,0x80,0x01]
121 ! CHECK
: xnorcc
%g2
, %g1
, %g3
! encoding
: [0x86,0xb8,0x80,0x01]
124 ! CHECK
: taddcc
%g2
, %g1
, %g3
! encoding
: [0x87,0x00,0x80,0x01]
127 ! CHECK
: tsubcc
%g2
, %g1
, %g3
! encoding
: [0x87,0x08,0x80,0x01]
130 ! CHECK
: taddcctv
%g2
, %g1
, %g3
! encoding
: [0x87,0x10,0x80,0x01]
131 taddcctv
%g2
, %g1
, %g3
133 ! CHECK
: tsubcctv
%g2
, %g1
, %g3
! encoding
: [0x87,0x18,0x80,0x01]
134 tsubcctv
%g2
, %g1
, %g3