Skip to content

Commit

Permalink
Fixing test_vck5000.cpp on modulo test
Browse files Browse the repository at this point in the history
  • Loading branch information
eddierichter-amd committed Jun 4, 2024
1 parent e37fba9 commit 7b1d4aa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ int main(int argc, char *argv[]) {

for (int i = 0; i < DMA_COUNT; i++) {
in_a[i] = i + 1;
in_b[i] = i + 1;
in_b[i] = 7;
out[i] = 0xdeface;
}

Expand All @@ -116,7 +116,7 @@ int main(int argc, char *argv[]) {
printf("s0[%d] = 0x%x\n", i, s0);
printf("s1[%d] = 0x%x\n", i, s1);
printf("d[%d] = 0x%x\n", i, d);
if (d != (s0 + s1)) {
if (d != (s0 % s1)) {
errors++;
printf("mismatch 0x%x != 0x%x + 0x%x\n", d, s0, s1);
}
Expand Down

0 comments on commit 7b1d4aa

Please sign in to comment.