OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [branches/] [stable_0_2_x/] [or1ksim/] [testbench/] [mul.c] - Diff between revs 226 and 309

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 226 Rev 309
Line 95... Line 95...
  unsigned t2 = test_mac (888888887, 0x87654321);
  unsigned t2 = test_mac (888888887, 0x87654321);
  unsigned t3 = test_mul_mac (888888887, 0x87654321);
  unsigned t3 = test_mul_mac (888888887, 0x87654321);
  printf ("%08x, expected %08x\n", t1, T1);
  printf ("%08x, expected %08x\n", t1, T1);
  printf ("%08x, expected %08x\n", t2, T2);
  printf ("%08x, expected %08x\n", t2, T2);
  printf ("%08x, expected %08x\n", t3, T3);
  printf ("%08x, expected %08x\n", t3, T3);
  report (t1 ^ t2 ^ t3 ^ T1 ^ T2 ^ T3 ^ 0xdeadbeef);
  report (t1 ^ t2 ^ t3 ^ T1 ^ T2 ^ T3 ^ 0xdeaddead);
  if (t1 != T1 || t2 != T2 || t3 != T3) {
  if (t1 != T1 || t2 != T2 || t3 != T3) {
    printf ("Test failed!\n");
    printf ("Test failed!\n");
    if (t1 != T1) exit (1);
    if (t1 != T1) exit (1);
    if (t2 != T2) exit (2);
    if (t2 != T2) exit (2);
    if (t3 != T3) exit (3);
    if (t3 != T3) exit (3);

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.