@@ -162,14 +162,14 @@ TEST(MemcpyUtilsTest, CopyBlockOverlap) {
162
162
163
163
TEST (MemcpyUtilsTest, CopyAlignedBlocks) {
164
164
auto &trace = GetTrace ();
165
- // Destination is aligned and multiple of alignment.
165
+ // Source is aligned and multiple of alignment.
166
166
// "1111"
167
167
trace.Clear ();
168
168
CopyAlignedBlocks<4 >(I (0 ), I (0 ), 4 );
169
169
EXPECT_STREQ (trace.Write (), " 2222" );
170
170
EXPECT_STREQ (trace.Read (), " 2222" );
171
171
172
- // Destination is aligned and multiple of alignment.
172
+ // Source is aligned and multiple of alignment.
173
173
// "11110000"
174
174
// + "00001111"
175
175
// = "11111111"
@@ -178,7 +178,7 @@ TEST(MemcpyUtilsTest, CopyAlignedBlocks) {
178
178
EXPECT_STREQ (trace.Write (), " 11111111" );
179
179
EXPECT_STREQ (trace.Read (), " 11111111" );
180
180
181
- // Destination is aligned already overlap at end.
181
+ // Source is aligned already overlap at end.
182
182
// "1111000000000"
183
183
// + "0000111100000"
184
184
// + "0000000011110"
@@ -189,26 +189,26 @@ TEST(MemcpyUtilsTest, CopyAlignedBlocks) {
189
189
EXPECT_STREQ (trace.Write (), " 1111111112221" );
190
190
EXPECT_STREQ (trace.Read (), " 1111111112221" );
191
191
192
- // Misaligned destination .
192
+ // Misaligned source .
193
193
// "01111000000000"
194
194
// + "00001111000000"
195
195
// + "00000000111100"
196
196
// + "00000000001111"
197
197
// = "01112111112211"
198
198
trace.Clear ();
199
- CopyAlignedBlocks<4 >(I (1 ), I (0 ), 13 );
200
- EXPECT_STREQ (trace.Write (), " 01112111112211 " );
201
- EXPECT_STREQ (trace.Read (), " 1112111112211 " );
199
+ CopyAlignedBlocks<4 >(I (0 ), I (1 ), 13 );
200
+ EXPECT_STREQ (trace.Write (), " 1112111112211 " );
201
+ EXPECT_STREQ (trace.Read (), " 01112111112211 " );
202
202
203
- // Misaligned destination aligned at end.
203
+ // Misaligned source aligned at end.
204
204
// "011110000000"
205
205
// + "000011110000"
206
206
// + "000000001111"
207
207
// = "011121111111"
208
208
trace.Clear ();
209
- CopyAlignedBlocks<4 >(I (1 ), I (0 ), 11 );
210
- EXPECT_STREQ (trace.Write (), " 011121111111 " );
211
- EXPECT_STREQ (trace.Read (), " 11121111111 " );
209
+ CopyAlignedBlocks<4 >(I (0 ), I (1 ), 11 );
210
+ EXPECT_STREQ (trace.Write (), " 11121111111 " );
211
+ EXPECT_STREQ (trace.Read (), " 011121111111 " );
212
212
}
213
213
214
214
TEST (MemcpyUtilsTest, MaxReloads) {
0 commit comments