sllv1.s
4.92 KB
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
/****************************************************************
This program tests the instruction: sllv
****************************************************************/
#include "suregre.h"
.base 0x04001000
LI(r0 , 0xFFFF, 0xFFFF);
LI(r1 , 0x0101, 0x0101);
LI(r2 , 0x0202, 0x0202);
LI(r3 , 0x0303, 0x0303);
LI(r4 , 0x0404, 0x0404);
LI(r5 , 0x0505, 0x0505);
LI(r6 , 0x0606, 0x0606);
LI(r7 , 0x0707, 0x0707);
LI(r8 , 0x0808, 0x0808);
LI(r9 , 0x0909, 0x0909);
LI(r10, 0x0A0A, 0x0A0A);
LI(r11, 0x0B0B, 0x0B0B);
LI(r12, 0x0C0C, 0x0C0C);
LI(r13, 0x0D0D, 0x0D0D);
LI(r14, 0x0E0E, 0x0E0E);
LI(r15, 0x0F0F, 0x0F0F);
LI(r16, 0x1010, 0x1010);
LI(r17, 0x1111, 0x1111);
LI(r18, 0x1212, 0x1212);
LI(r19, 0x1313, 0x1313);
LI(r20, 0x1414, 0x1414);
LI(r21, 0x1515, 0x1515);
LI(r22, 0x1616, 0x1616);
LI(r23, 0x1717, 0x1717);
LI(r24, 0x1818, 0x1818);
LI(r25, 0x1919, 0x1919);
LI(r26, 0x1A1A, 0x1A1A);
LI(r27, 0x1B1B, 0x1B1B);
LI(r28, 0x1C1C, 0x1C1C);
LI(r29, 0x1D1D, 0x1D1D);
LI(r30, 0x1E1E, 0x1E1E);
LI(r31, 0x1F1F, 0x1F1F);
ChkAluWWW( 1,sllv,r5 ,0x0505,0x0505,r3 ,r4 ,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,r2 )
ChkAluWWW( 2,sllv,r6 ,0x0606,0x0606,r4 ,r5 ,0x0180,0x0180,0x0180,0x0180,0x0000,0x0000,r3 )
ChkAluWWW( 3,sllv,r7 ,0x0707,0x0707,r5 ,r6 ,0x0480,0x0480,0x0240,0x0240,0x0000,0x0001,r4 )
ChkAluWWW( 4,sllv,r8 ,0x0808,0x0808,r6 ,r7 ,0x1080,0x1080,0x0420,0x0420,0x0000,0x0002,r5 )
ChkAluWWW( 5,sllv,r9 ,0x0909,0x0909,r7 ,r8 ,0x4080,0x4080,0x0810,0x0810,0x0000,0x0003,r6 )
ChkAluWWW( 6,sllv,r10,0x0A0A,0x0A0A,r8 ,r9 ,0x0081,0x0080,0x1008,0x1008,0x0000,0x0004,r7 )
ChkAluWWW( 7,sllv,r11,0x0B0B,0x0B0B,r9 ,r10,0x0084,0x0080,0x2004,0x2004,0x0000,0x0005,r8 )
ChkAluWWW( 8,sllv,r12,0x0C0C,0x0C0C,r10,r11,0x0090,0x0080,0x4002,0x4002,0x0000,0x0006,r9 )
ChkAluWWW( 9,sllv,r13,0x0D0D,0x0D0D,r11,r12,0x00C0,0x0080,0x8001,0x8001,0x0000,0x0007,r10)
ChkAluWWW(10,sllv,r14,0x0E0E,0x0E0E,r12,r13,0x8001,0x8000,0x0180,0x0180,0x0000,0x0008,r11)
ChkAluWWW(11,sllv,r15,0x0F0F,0x0F0F,r13,r14,0x8004,0x8000,0x0240,0x0240,0x0000,0x0009,r12)
ChkAluWWW(12,sllv,r16,0x1010,0x1010,r14,r15,0x8010,0x8000,0x0420,0x0420,0x0000,0x000A,r13)
ChkAluWWW(13,sllv,r17,0x1111,0x1111,r15,r16,0x8040,0x8000,0x0810,0x0810,0x0000,0x000B,r14)
ChkAluWWW(14,sllv,r18,0x1212,0x1212,r16,r17,0x8100,0x8000,0x1008,0x1008,0x0000,0x000C,r15)
ChkAluWWW(15,sllv,r19,0x1313,0x1313,r17,r18,0x8400,0x8000,0x2004,0x2004,0x0000,0x000D,r16)
ChkAluWWW(16,sllv,r20,0x1414,0x1414,r18,r19,0x9000,0x8000,0x4002,0x4002,0x0000,0x000E,r17)
ChkAluWWW(17,sllv,r21,0x1515,0x1515,r19,r20,0xC000,0x8000,0x8001,0x8001,0x0000,0x000F,r18)
ChkAluWWW(18,sllv,r22,0x1616,0x1616,r20,r21,0x0180,0x0000,0x0180,0x0180,0x0000,0x0010,r19)
ChkAluWWW(19,sllv,r23,0x1717,0x1717,r21,r22,0x0480,0x0000,0x0240,0x0240,0x0000,0x0011,r20)
ChkAluWWW(20,sllv,r24,0x1818,0x1818,r22,r23,0x1080,0x0000,0x0420,0x0420,0x0000,0x0012,r21)
ChkAluWWW(21,sllv,r25,0x1919,0x1919,r23,r24,0x4080,0x0000,0x0810,0x0810,0x0000,0x0013,r22)
ChkAluWWW(22,sllv,r26,0x1A1A,0x1A1A,r24,r25,0x0080,0x0000,0x1008,0x1008,0x0000,0x0014,r23)
ChkAluWWW(23,sllv,r27,0x1B1B,0x1B1B,r25,r26,0x0080,0x0000,0x2004,0x2004,0x0000,0x0015,r24)
ChkAluWWW(24,sllv,r28,0x1C1C,0x1C1C,r26,r27,0x0080,0x0000,0x4002,0x4002,0x0000,0x0016,r25)
ChkAluWWW(25,sllv,r29,0x1D1D,0x1D1D,r27,r28,0x0080,0x0000,0x8001,0x8001,0x0000,0x0017,r26)
ChkAluWWW(26,sllv,r30,0x1E1E,0x1E1E,r28,r29,0x8000,0x0000,0x0180,0x0180,0x0000,0x0018,r27)
ChkAluWWW(27,sllv,r2 ,0x0000,0x0000,r29,r30,0x8000,0x0000,0x0240,0x0240,0x0000,0x0019,r28)
ChkAluWWW(28,sllv,r3 ,0x0180,0x0180,r30,r2 ,0x8000,0x0000,0x0420,0x0420,0x0000,0x001A,r29)
ChkAluWWW(29,sllv,r4 ,0x0480,0x0480,r2 ,r3 ,0x8000,0x0000,0x0810,0x0810,0x0000,0x001B,r30)
ChkAluWWW(30,sllv,r5 ,0x1080,0x1080,r3 ,r4 ,0x8000,0x0000,0x1008,0x1008,0x0000,0x001C,r2 )
ChkAluWWW(31,sllv,r6 ,0x4080,0x4080,r4 ,r5 ,0x8000,0x0000,0x2004,0x2004,0x0000,0x001D,r3 )
ChkAluWWW(32,sllv,r7 ,0x0081,0x0080,r5 ,r6 ,0x8000,0x0000,0x4002,0x4002,0x0000,0x001E,r4 )
ChkAluWWW(33,sllv,r8 ,0x0084,0x0080,r6 ,r7 ,0x8000,0x0000,0x8001,0x8001,0x0000,0x001F,r5 )
ChkAluWWW(34,sllv,r9 ,0x0090,0x0080,r7 ,r8 ,0x0180,0x0180,0x0180,0x0180,0x0000,0x0020,r6 )
ChkAluWWW(35,sllv,r10,0x00C0,0x0080,r8 ,r9 ,0x0480,0x0480,0x0240,0x0240,0x0000,0x0021,r7 )
ChkAluWWW(36,sllv,r11,0x8001,0x8000,r9 ,r10,0x1080,0x1080,0x0420,0x0420,0x0000,0x0022,r8 )
ChkAluWWW(37,sllv,r12,0x8004,0x8000,r10,r11,0x4080,0x4080,0x0810,0x0810,0x0000,0x0023,r9 )
ChkAluWWW(38,sllv,r13,0x8010,0x8000,r11,r12,0x0081,0x0080,0x1008,0x1008,0x0000,0x0024,r10)
ChkAluWWW(39,sllv,r14,0x8040,0x8000,r12,r13,0x0084,0x0080,0x2004,0x2004,0x0000,0x0025,r11)
ChkAluWWW(40,sllv,r15,0x8100,0x8000,r13,r14,0x0090,0x0080,0x4002,0x4002,0x0000,0x0026,r12)
ChkAluWWW(41,sllv,r16,0x8400,0x8000,r14,r15,0x00C0,0x0080,0x8001,0x8001,0x0000,0x0027,r13)
ChkAluWWW(42,sllv,r17,0x9000,0x8000,r15,r16,0x8001,0x8000,0x0180,0x0180,0x0000,0x0028,r14)
ChkAluWWW(43,sllv,r18,0xC000,0x8000,r16,r17,0x8004,0x8000,0x0240,0x0240,0x0000,0x0029,r15)
ori r1, r0, 0xFEED;
Fail: break;