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 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
|
//Original:/testcases/core/c_dspldst_ld_dr_i/c_dspldst_ld_dr_i.dsp
# mach: bfin
.include "testutils.inc"
start
// Spec Reference: c_dspldst ld_dr_i
// set all regs
INIT_R_REGS 0;
// initial values
loadsym I0, DATA1
loadsym I1, DATA2
loadsym I2, DATA3
loadsym I3, DATA4
R0 = [ I0 ];
R1 = [ I1 ];
R2 = [ I2 ];
R3 = [ I3 ];
R4 = [ I0 ];
R5 = [ I1 ];
R6 = [ I2 ];
R7 = [ I3 ];
CHECKREG r0, 0x00010203;
CHECKREG r1, 0x20212223;
CHECKREG r2, 0x40414243;
CHECKREG r3, 0x60616263;
CHECKREG r4, 0x00010203;
CHECKREG r5, 0x20212223;
CHECKREG r6, 0x40414243;
CHECKREG r7, 0x60616263;
R1 = [ I0 ];
R2 = [ I1 ];
R3 = [ I2 ];
R4 = [ I3 ];
R5 = [ I0 ];
R6 = [ I1 ];
R7 = [ I2 ];
R0 = [ I3 ];
CHECKREG r0, 0x60616263;
CHECKREG r1, 0x00010203;
CHECKREG r2, 0x20212223;
CHECKREG r3, 0x40414243;
CHECKREG r4, 0x60616263;
CHECKREG r5, 0x00010203;
CHECKREG r6, 0x20212223;
CHECKREG r7, 0x40414243;
R2 = [ I0 ];
R3 = [ I1 ];
R4 = [ I2 ];
R5 = [ I3 ];
R6 = [ I0 ];
R7 = [ I1 ];
R0 = [ I2 ];
R1 = [ I3 ];
CHECKREG r0, 0x40414243;
CHECKREG r1, 0x60616263;
CHECKREG r2, 0x00010203;
CHECKREG r3, 0x20212223;
CHECKREG r4, 0x40414243;
CHECKREG r5, 0x60616263;
CHECKREG r6, 0x00010203;
CHECKREG r7, 0x20212223;
R3 = [ I0 ];
R4 = [ I1 ];
R5 = [ I2 ];
R6 = [ I3 ];
R7 = [ I0 ];
R0 = [ I1 ];
R1 = [ I2 ];
R2 = [ I3 ];
CHECKREG r0, 0x20212223;
CHECKREG r1, 0x40414243;
CHECKREG r2, 0x60616263;
CHECKREG r3, 0x00010203;
CHECKREG r4, 0x20212223;
CHECKREG r5, 0x40414243;
CHECKREG r6, 0x60616263;
CHECKREG r7, 0x00010203;
pass
// Pre-load memory with known data
// More data is defined than will actually be used
.data
DATA1:
.dd 0x00010203
.dd 0x04050607
.dd 0x08090A0B
.dd 0x0C0D0E0F
.dd 0x10111213
.dd 0x14151617
.dd 0x18191A1B
.dd 0x1C1D1E1F
DATA2:
.dd 0x20212223
.dd 0x24252627
.dd 0x28292A2B
.dd 0x2C2D2E2F
.dd 0x30313233
.dd 0x34353637
.dd 0x38393A3B
.dd 0x3C3D3E3F
DATA3:
.dd 0x40414243
.dd 0x44454647
.dd 0x48494A4B
.dd 0x4C4D4E4F
.dd 0x50515253
.dd 0x54555657
.dd 0x58595A5B
.dd 0x5C5D5E5F
DATA4:
.dd 0x60616263
.dd 0x64656667
.dd 0x68696A6B
.dd 0x6C6D6E6F
.dd 0x70717273
.dd 0x74757677
.dd 0x78797A7B
.dd 0x7C7D7E7F
DATA5:
.dd 0x80818283
.dd 0x84858687
.dd 0x88898A8B
.dd 0x8C8D8E8F
.dd 0x90919293
.dd 0x94959697
.dd 0x98999A9B
.dd 0x9C9D9E9F
DATA6:
.dd 0xA0A1A2A3
.dd 0xA4A5A6A7
.dd 0xA8A9AAAB
.dd 0xACADAEAF
.dd 0xB0B1B2B3
.dd 0xB4B5B6B7
.dd 0xB8B9BABB
.dd 0xBCBDBEBF
.dd 0xC0C1C2C3
.dd 0xC4C5C6C7
.dd 0xC8C9CACB
.dd 0xCCCDCECF
.dd 0xD0D1D2D3
.dd 0xD4D5D6D7
.dd 0xD8D9DADB
.dd 0xDCDDDEDF
.dd 0xE0E1E2E3
.dd 0xE4E5E6E7
.dd 0xE8E9EAEB
.dd 0xECEDEEEF
.dd 0xF0F1F2F3
.dd 0xF4F5F6F7
.dd 0xF8F9FAFB
.dd 0xFCFDFEFF
|