1 ! RUN
: llvm-mc
%s
-arch
=sparc
-show-encoding | FileCheck
%s
3 ! CHECK
: ld [%i1
], %c4
! encoding
: [0xc9,0x86,0x40,0x00]
4 ! CHECK
: ld [%i1+
-15], %c4
! encoding
: [0xc9,0x86,0x7f,0xf1]
5 ! CHECK
: ld [%i1+
%o3
], %c4
! encoding
: [0xc9,0x86,0x40,0x0b]
6 ! CHECK
: ld [%i7
], %c4
! encoding
: [0xc9,0x87,0xc0,0x00]
7 ! CHECK
: ld [%i1
], %c19
! encoding
: [0xe7,0x86,0x40,0x00]
15 ! CHECK
: ldd
[%i1
], %c4
! encoding
: [0xc9,0x9e,0x40,0x00]
16 ! CHECK
: ldd
[%i7
], %c4
! encoding
: [0xc9,0x9f,0xc0,0x00]
17 ! CHECK
: ldd
[%i7+
200], %c4
! encoding
: [0xc9,0x9f,0xe0,0xc8]
18 ! CHECK
: ldd
[%i7+
%o3
], %c4
! encoding
: [0xc9,0x9f,0xc0,0x0b]
19 ! CHECK
: ldd
[%i1
], %c30
! encoding
: [0xfd,0x9e,0x40,0x00]
27 ! CHECK
: st %c4
, [%i1
] ! encoding
: [0xc9,0xa6,0x40,0x00]
28 ! CHECK
: st %c4
, [%i7
] ! encoding
: [0xc9,0xa7,0xc0,0x00]
29 ! CHECK
: st %c4
, [%i7+
48] ! encoding
: [0xc9,0xa7,0xe0,0x30]
30 ! CHECK
: st %c4
, [%i4+
%o2
] ! encoding
: [0xc9,0xa7,0x00,0x0a]
31 ! CHECK
: st %c19
, [%i1
] ! encoding
: [0xe7,0xa6,0x40,0x00]
39 ! CHECK
: std %c4
, [%i1
] ! encoding
: [0xc9,0xbe,0x40,0x00]
40 ! CHECK
: std %c4
, [%i7
] ! encoding
: [0xc9,0xbf,0xc0,0x00]
41 ! CHECK
: std %c4
, [%i2+
-240] ! encoding
: [0xc9,0xbe,0xbf,0x10]
42 ! CHECK
: std %c4
, [%i1+
%o5
] ! encoding
: [0xc9,0xbe,0x40,0x0d]
43 ! CHECK
: std %c30
, [%i1
] ! encoding
: [0xfd,0xbe,0x40,0x00]
51 ! CHECK
: ld [%i5
], %csr
! encoding
: [0xc1,0x8f,0x40,0x00]
52 ! CHECK
: ld [%l2+
3], %csr
! encoding
: [0xc1,0x8c,0xa0,0x03]
53 ! CHECK
: ld [%l4+
%l5
], %csr
! encoding
: [0xc1,0x8d,0x00,0x15]
59 ! CHECK
: st %csr
, [%i2
] ! encoding
: [0xc1,0xae,0x80,0x00]
60 ! CHECK
: st %csr
, [%i2+
31] ! encoding
: [0xc1,0xae,0xa0,0x1f]
61 ! CHECK
: st %csr
, [%i2+
%o2
] ! encoding
: [0xc1,0xae,0x80,0x0a]
66 ! CHECK
: std %cq
, [%o3
] ! encoding
: [0xc1,0xb2,0xc0,0x00]
67 ! CHECK
: std %cq
, [%o3+
-93] ! encoding
: [0xc1,0xb2,0xff,0xa3]
68 ! CHECK
: std %cq
, [%o3+
%l5
] ! encoding
: [0xc1,0xb2,0xc0,0x15]