URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [wmul-1.c] - Rev 848
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-O2" } */ /* { dg-require-effective-target ia32 } */ long long mac(const int *a, const int *b, long long sqr, long long *sum) { int i; long long dotp = *sum; for (i = 0; i < 150; i++) { dotp += (long long)b[i] * a[i]; sqr += (long long)b[i] * b[i]; } *sum = dotp; return sqr; } /* { dg-final { scan-assembler-times "imull" 2 } } */
Go to most recent revision | Compare with Previous | Blame | View Log