[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / test / MC / Sparc / sparc-mem-instructions.s
blob85ff8ce657ee9265a0b4dcb890d376a80db81aa2
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]
5 ldsb [%i0 + %l6], %o2
6 ! CHECK: ldsb [%i0+32], %o2 ! encoding: [0xd4,0x4e,0x20,0x20]
7 ldsb [%i0 + 32], %o2
8 ! CHECK: ldsb [%g1], %o4 ! encoding: [0xd8,0x48,0x40,0x00]
9 ldsb [%g1], %o4
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]
14 ldsh [%i0 + %l6], %o2
15 ! CHECK: ldsh [%i0+32], %o2 ! encoding: [0xd4,0x56,0x20,0x20]
16 ldsh [%i0 + 32], %o2
17 ! CHECK: ldsh [%g1], %o4 ! encoding: [0xd8,0x50,0x40,0x00]
18 ldsh [%g1], %o4
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]
23 ldub [%i0 + %l6], %o2
24 ! CHECK: ldub [%i0+32], %o2 ! encoding: [0xd4,0x0e,0x20,0x20]
25 ldub [%i0 + 32], %o2
26 ! CHECK: ldub [%g1], %o2 ! encoding: [0xd4,0x08,0x40,0x00]
27 ldub [%g1], %o2
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]
32 lduh [%i0 + %l6], %o2
33 ! CHECK: lduh [%i0+32], %o2 ! encoding: [0xd4,0x16,0x20,0x20]
34 lduh [%i0 + 32], %o2
35 ! CHECK: lduh [%g1], %o2 ! encoding: [0xd4,0x10,0x40,0x00]
36 lduh [%g1], %o2
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]
41 ld [%i0 + %l6], %o2
42 ! CHECK: ld [%i0+32], %o2 ! encoding: [0xd4,0x06,0x20,0x20]
43 ld [%i0 + 32], %o2
44 ! CHECK: ld [%g1], %o2 ! encoding: [0xd4,0x00,0x40,0x00]
45 ld [%g1], %o2
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]
50 ldd [%i0 + %l6], %o2
51 ! CHECK: ldd [%i0+32], %o2 ! encoding: [0xd4,0x1e,0x20,0x20]
52 ldd [%i0 + 32], %o2
53 ! CHECK: ldd [%g1], %o2 ! encoding: [0xd4,0x18,0x40,0x00]
54 ldd [%g1], %o2
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]
59 stb %o2, [%i0 + %l6]
60 ! CHECK: stb %o2, [%i0+32] ! encoding: [0xd4,0x2e,0x20,0x20]
61 stb %o2, [%i0 + 32]
62 ! CHECK: stb %o2, [%g1] ! encoding: [0xd4,0x28,0x40,0x00]
63 stb %o2, [%g1]
64 ! CHECK: stb %o2, [%g1] ! encoding: [0xd4,0x28,0x40,0x00]
65 stub %o2, [%g1]
66 ! CHECK: stb %o2, [%g1] ! encoding: [0xd4,0x28,0x40,0x00]
67 stsb %o2, [%g1]
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]
76 sth %o2, [%i0 + %l6]
77 ! CHECK: sth %o2, [%i0+32] ! encoding: [0xd4,0x36,0x20,0x20]
78 sth %o2, [%i0 + 32]
79 ! CHECK: sth %o2, [%g1] ! encoding: [0xd4,0x30,0x40,0x00]
80 sth %o2, [%g1]
81 ! CHECK: sth %o2, [%g1] ! encoding: [0xd4,0x30,0x40,0x00]
82 stuh %o2, [%g1]
83 ! CHECK: sth %o2, [%g1] ! encoding: [0xd4,0x30,0x40,0x00]
84 stsh %o2, [%g1]
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]
93 st %o2, [%i0 + %l6]
94 ! CHECK: st %o2, [%i0+32] ! encoding: [0xd4,0x26,0x20,0x20]
95 st %o2, [%i0 + 32]
96 ! CHECK: st %o2, [%g1] ! encoding: [0xd4,0x20,0x40,0x00]
97 st %o2, [%g1]
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]
102 std %o2, [%i0 + %l6]
103 ! CHECK: std %o2, [%i0+32] ! encoding: [0xd4,0x3e,0x20,0x20]
104 std %o2, [%i0 + 32]
105 ! CHECK: std %o2, [%g1] ! encoding: [0xd4,0x38,0x40,0x00]
106 std %o2, [%g1]
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]
111 flush %g1 + %g2
112 ! CHECK: flush %g1+8 ! encoding: [0x81,0xd8,0x60,0x08]
113 flush %g1 + 8
114 ! CHECK: flush %g1 ! encoding: [0x81,0xd8,0x40,0x00]
115 flush %g1
116 ! Not specified in manual, but accepted by gas.
117 ! CHECK: flush %g0 ! encoding: [0x81,0xd8,0x00,0x00]
118 flush
119 ! CHECK: flush %g0 ! encoding: [0x81,0xd8,0x00,0x00]
120 iflush