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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [tic6x/] [builtins/] [smpyh.c] - Blame information for rev 751

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
#include <c6x_intrinsics.h>
2
extern void abort (void);
3
 
4
int a1 = 0x50000000;
5
int b1 = 0xc0000000;
6
int a2 = 0xd0000000;
7
int b2 = 0x20000000;
8
int c = 0x80000000;
9
int main ()
10
{
11
  if (_smpyh (a1, b1) != 0xd8000000)
12
    abort ();
13
  if (_smpyh (a2, b2) != 0xf4000000)
14
    abort ();
15
  if (_smpyh (c, c) != 0x7fffffff)
16
    abort ();
17
 
18
  return 0;
19
}

powered by: WebSVN 2.1.0

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