1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
# RUN: llvm-mc %s -triple=mipsel-unknown-linux -show-encoding -mcpu=mips32r2 | \
# RUN: FileCheck %s
# Check that the assembler can handle the documented syntax
# for ".set at" and set the correct value.
.text
foo:
# CHECK: jr $1 # encoding: [0x08,0x00,0x20,0x00]
.set at=$1
jr $at
nop
# CHECK: jr $2 # encoding: [0x08,0x00,0x40,0x00]
.set at=$2
jr $at
nop
# CHECK: jr $3 # encoding: [0x08,0x00,0x60,0x00]
.set at=$3
jr $at
nop
# CHECK: jr $4 # encoding: [0x08,0x00,0x80,0x00]
.set at=$a0
jr $at
nop
# CHECK: jr $5 # encoding: [0x08,0x00,0xa0,0x00]
.set at=$a1
jr $at
nop
# CHECK: jr $6 # encoding: [0x08,0x00,0xc0,0x00]
.set at=$a2
jr $at
nop
# CHECK: jr $7 # encoding: [0x08,0x00,0xe0,0x00]
.set at=$a3
jr $at
nop
# CHECK: jr $8 # encoding: [0x08,0x00,0x00,0x01]
.set at=$8
jr $at
nop
# CHECK: jr $9 # encoding: [0x08,0x00,0x20,0x01]
.set at=$9
jr $at
nop
# CHECK: jr $10 # encoding: [0x08,0x00,0x40,0x01]
.set at=$10
jr $at
nop
# CHECK: jr $11 # encoding: [0x08,0x00,0x60,0x01]
.set at=$11
jr $at
nop
# CHECK: jr $12 # encoding: [0x08,0x00,0x80,0x01]
.set at=$12
jr $at
nop
# CHECK: jr $13 # encoding: [0x08,0x00,0xa0,0x01]
.set at=$13
jr $at
nop
# CHECK: jr $14 # encoding: [0x08,0x00,0xc0,0x01]
.set at=$14
jr $at
nop
# CHECK: jr $15 # encoding: [0x08,0x00,0xe0,0x01]
.set at=$15
jr $at
nop
# CHECK: jr $16 # encoding: [0x08,0x00,0x00,0x02]
.set at=$s0
jr $at
nop
# CHECK: jr $17 # encoding: [0x08,0x00,0x20,0x02]
.set at=$s1
jr $at
nop
# CHECK: jr $18 # encoding: [0x08,0x00,0x40,0x02]
.set at=$s2
jr $at
nop
# CHECK: jr $19 # encoding: [0x08,0x00,0x60,0x02]
.set at=$s3
jr $at
nop
# CHECK: jr $20 # encoding: [0x08,0x00,0x80,0x02]
.set at=$s4
jr $at
nop
# CHECK: jr $21 # encoding: [0x08,0x00,0xa0,0x02]
.set at=$s5
jr $at
nop
# CHECK: jr $22 # encoding: [0x08,0x00,0xc0,0x02]
.set at=$s6
jr $at
nop
# CHECK: jr $23 # encoding: [0x08,0x00,0xe0,0x02]
.set at=$s7
jr $at
nop
# CHECK: jr $24 # encoding: [0x08,0x00,0x00,0x03]
.set at=$24
jr $at
nop
# CHECK: jr $25 # encoding: [0x08,0x00,0x20,0x03]
.set at=$25
jr $at
nop
# CHECK: jr $26 # encoding: [0x08,0x00,0x40,0x03]
.set at=$26
jr $at
nop
# CHECK: jr $27 # encoding: [0x08,0x00,0x60,0x03]
.set at=$27
jr $at
nop
# CHECK: jr $gp # encoding: [0x08,0x00,0x80,0x03]
.set at=$gp
jr $at
nop
# CHECK: jr $fp # encoding: [0x08,0x00,0xc0,0x03]
.set at=$fp
jr $at
nop
# CHECK: jr $sp # encoding: [0x08,0x00,0xa0,0x03]
.set at=$sp
jr $at
nop
# CHECK: jr $ra # encoding: [0x08,0x00,0xe0,0x03]
.set at=$ra
jr $at
nop
|