1 ! RUN
: llvm-mc
%s
-arch
=sparc
-show-encoding | FileCheck
%s
2 ! RUN
: llvm-mc
%s
-arch
=sparcv9
-show-encoding | FileCheck
%s
4 ! CHECK
: ldsb
[%i0+
%l6
], %o2
! encoding
: [0xd4,0x4e,0x00,0x16]
6 ! CHECK
: ldsb
[%i0+
32], %o2
! encoding
: [0xd4,0x4e,0x20,0x20]
8 ! CHECK
: ldsb
[%g1
], %o4
! encoding
: [0xd8,0x48,0x40,0x00]
10 ! CHECK
: ldsba
[%i0+
%l6
] 131, %o2
! encoding
: [0xd4,0xce,0x10,0x76]
11 ldsba
[%i0
+ %l6
] 131, %o2
13 ! CHECK
: ldsh
[%i0+
%l6
], %o2
! encoding
: [0xd4,0x56,0x00,0x16]
15 ! CHECK
: ldsh
[%i0+
32], %o2
! encoding
: [0xd4,0x56,0x20,0x20]
17 ! CHECK
: ldsh
[%g1
], %o4
! encoding
: [0xd8,0x50,0x40,0x00]
19 ! CHECK
: ldsha
[%i0+
%l6
] 131, %o2
! encoding
: [0xd4,0xd6,0x10,0x76]
20 ldsha
[%i0
+ %l6
] 131, %o2
22 ! CHECK
: ldub
[%i0+
%l6
], %o2
! encoding
: [0xd4,0x0e,0x00,0x16]
24 ! CHECK
: ldub
[%i0+
32], %o2
! encoding
: [0xd4,0x0e,0x20,0x20]
26 ! CHECK
: ldub
[%g1
], %o2
! encoding
: [0xd4,0x08,0x40,0x00]
28 ! CHECK
: lduba
[%i0+
%l6
] 131, %o2
! encoding
: [0xd4,0x8e,0x10,0x76]
29 lduba
[%i0
+ %l6
] 131, %o2
31 ! CHECK
: lduh
[%i0+
%l6
], %o2
! encoding
: [0xd4,0x16,0x00,0x16]
33 ! CHECK
: lduh
[%i0+
32], %o2
! encoding
: [0xd4,0x16,0x20,0x20]
35 ! CHECK
: lduh
[%g1
], %o2
! encoding
: [0xd4,0x10,0x40,0x00]
37 ! CHECK
: lduha
[%i0+
%l6
] 131, %o2
! encoding
: [0xd4,0x96,0x10,0x76]
38 lduha
[%i0
+ %l6
] 131, %o2
40 ! CHECK
: ld [%i0+
%l6
], %o2
! encoding
: [0xd4,0x06,0x00,0x16]
42 ! CHECK
: ld [%i0+
32], %o2
! encoding
: [0xd4,0x06,0x20,0x20]
44 ! CHECK
: ld [%g1
], %o2
! encoding
: [0xd4,0x00,0x40,0x00]
46 ! CHECK
: lda
[%i0+
%l6
] 131, %o2
! encoding
: [0xd4,0x86,0x10,0x76]
47 lda
[%i0
+ %l6
] 131, %o2
49 ! CHECK
: ldd
[%i0+
%l6
], %o2
! encoding
: [0xd4,0x1e,0x00,0x16]
51 ! CHECK
: ldd
[%i0+
32], %o2
! encoding
: [0xd4,0x1e,0x20,0x20]
53 ! CHECK
: ldd
[%g1
], %o2
! encoding
: [0xd4,0x18,0x40,0x00]
55 ! CHECK
: ldda
[%i0+
%l6
] 131, %o2
! encoding
: [0xd4,0x9e,0x10,0x76]
56 ldda
[%i0
+ %l6
] 131, %o2
58 ! CHECK
: stb %o2
, [%i0+
%l6
] ! encoding
: [0xd4,0x2e,0x00,0x16]
60 ! CHECK
: stb %o2
, [%i0+
32] ! encoding
: [0xd4,0x2e,0x20,0x20]
62 ! CHECK
: stb %o2
, [%g1
] ! encoding
: [0xd4,0x28,0x40,0x00]
64 ! CHECK
: stb %o2
, [%g1
] ! encoding
: [0xd4,0x28,0x40,0x00]
66 ! CHECK
: stb %o2
, [%g1
] ! encoding
: [0xd4,0x28,0x40,0x00]
68 ! CHECK
: stba
%o2
, [%i0+
%l6
] 131 ! encoding
: [0xd4,0xae,0x10,0x76]
69 stba
%o2
, [%i0
+ %l6
] 131
70 ! CHECK
: stba
%o2
, [%i0+
%l6
] 131 ! encoding
: [0xd4,0xae,0x10,0x76]
71 stuba
%o2
, [%i0
+ %l6
] 131
72 ! CHECK
: stba
%o2
, [%i0+
%l6
] 131 ! encoding
: [0xd4,0xae,0x10,0x76]
73 stsba
%o2
, [%i0
+ %l6
] 131
75 ! CHECK
: sth %o2
, [%i0+
%l6
] ! encoding
: [0xd4,0x36,0x00,0x16]
77 ! CHECK
: sth %o2
, [%i0+
32] ! encoding
: [0xd4,0x36,0x20,0x20]
79 ! CHECK
: sth %o2
, [%g1
] ! encoding
: [0xd4,0x30,0x40,0x00]
81 ! CHECK
: sth %o2
, [%g1
] ! encoding
: [0xd4,0x30,0x40,0x00]
83 ! CHECK
: sth %o2
, [%g1
] ! encoding
: [0xd4,0x30,0x40,0x00]
85 ! CHECK
: stha
%o2
, [%i0+
%l6
] 131 ! encoding
: [0xd4,0xb6,0x10,0x76]
86 stha
%o2
, [%i0
+ %l6
] 131
87 ! CHECK
: stha
%o2
, [%i0+
%l6
] 131 ! encoding
: [0xd4,0xb6,0x10,0x76]
88 stuha
%o2
, [%i0
+ %l6
] 131
89 ! CHECK
: stha
%o2
, [%i0+
%l6
] 131 ! encoding
: [0xd4,0xb6,0x10,0x76]
90 stsha
%o2
, [%i0
+ %l6
] 131
92 ! CHECK
: st %o2
, [%i0+
%l6
] ! encoding
: [0xd4,0x26,0x00,0x16]
94 ! CHECK
: st %o2
, [%i0+
32] ! encoding
: [0xd4,0x26,0x20,0x20]
96 ! CHECK
: st %o2
, [%g1
] ! encoding
: [0xd4,0x20,0x40,0x00]
98 ! CHECK
: sta
%o2
, [%i0+
%l6
] 131 ! encoding
: [0xd4,0xa6,0x10,0x76]
99 sta
%o2
, [%i0
+ %l6
] 131
101 ! CHECK
: std %o2
, [%i0+
%l6
] ! encoding
: [0xd4,0x3e,0x00,0x16]
103 ! CHECK
: std %o2
, [%i0+
32] ! encoding
: [0xd4,0x3e,0x20,0x20]
105 ! CHECK
: std %o2
, [%g1
] ! encoding
: [0xd4,0x38,0x40,0x00]
107 ! CHECK
: stda
%o2
, [%i0+
%l6
] 131 ! encoding
: [0xd4,0xbe,0x10,0x76]
108 stda
%o2
, [%i0
+ %l6
] 131
110 ! CHECK
: flush
%g1+
%g2
! encoding
: [0x81,0xd8,0x40,0x02]
112 ! CHECK
: flush
%g1+
8 ! encoding
: [0x81,0xd8,0x60,0x08]
114 ! CHECK
: flush
%g1
! encoding
: [0x81,0xd8,0x40,0x00]
116 ! Not specified in manual
, but accepted by gas.
117 ! CHECK
: flush
%g0
! encoding
: [0x81,0xd8,0x00,0x00]
119 ! CHECK
: flush
%g0
! encoding
: [0x81,0xd8,0x00,0x00]