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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr27743.c] - Blame information for rev 754

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do run { target { stdint_types } } } */
2
 
3
#include <stdint.h>
4
extern void abort(void);
5
 
6
int32_t bar (int32_t a)
7
{
8
  return ((uint32_t) ((a) >> 2)) >> 15;
9
}
10
 
11
int main()
12
{
13
  if (bar (0xffff3000) != 0x1ffff)
14
    abort ();
15
  return 0;
16
}

powered by: WebSVN 2.1.0

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