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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [frv/] [fr450-builtins-4.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 691 jeremybenn
/* Test __MQSRAHI.  */
2
/* { dg-options "-mcpu=fr450" } */
3
/* { dg-do run } */
4
extern void abort (void);
5
extern void exit (int);
6
 
7
int main ()
8
{
9
  if (__MQSRAHI (0x0001000200030004ULL, 1) != 0x0000000100010002ULL)
10
    abort ();
11
 
12
  if (__MQSRAHI (0xfffffffefffcfff8ULL, 1) != 0xfffffffffffefffcULL)
13
    abort ();
14
 
15
  if (__MQSRAHI (0x8000c000e000f000ULL, 12) != 0xfff8fffcfffeffffULL)
16
    abort ();
17
 
18
  if (__MQSRAHI (0x123456789abcdef0ULL, 12) != 0x00010005fff9fffdULL)
19
    abort ();
20
 
21
  if (__MQSRAHI (0x123456789abcdef0ULL, 16) != 0x123456789abcdef0ULL)
22
    abort ();
23
 
24
  exit (0);
25
}

powered by: WebSVN 2.1.0

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