Commit | Line | Data |
---|---|---|
42851540 NC |
1 | # Shift instructions. |
2 | .data | |
3 | foodata: .word 42 | |
4 | .text | |
5 | footext: | |
6 | ||
7 | .global sllb | |
8 | sllb: | |
9 | sllb $7 , r1 | |
10 | sllb r2 , r3 | |
11 | ||
12 | .global srlb | |
13 | srlb: | |
14 | srlb $0x5 , r4 | |
15 | srlb r5 , r6 | |
16 | ||
17 | .global srab | |
18 | srab: | |
19 | srab $04 , r7 | |
20 | srab r8 , r9 | |
21 | ||
22 | .global sllw | |
23 | sllw: | |
24 | sllw $15 , r10 | |
25 | sllw r11 , r12 | |
26 | ||
27 | .global srlw | |
28 | srlw: | |
29 | srlw $0xe , r13 | |
30 | srlw r14 , r15 | |
31 | ||
32 | .global sraw | |
33 | sraw: | |
34 | sraw $015 , ra | |
35 | sraw sp , r1 | |
36 | ||
37 | .global slld | |
38 | slld: | |
39 | slld $31 , r2 | |
40 | slld r3 , r4 | |
41 | ||
42 | .global srld | |
43 | srld: | |
44 | srld $0x1f , r5 | |
45 | srld r6 , r7 | |
46 | ||
47 | .global srad | |
48 | srad: | |
49 | srad $022 , r8 | |
50 | srad r9 , r10 | |
51 |