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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [cris/] [peep2-xsrand2.c] - Blame information for rev 316

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

Line No. Rev Author Line
1 316 jeremybenn
/* { dg-do compile } */
2
/* { dg-final { scan-assembler "and.w -137," } } */
3
/* { dg-final { scan-assembler "and.b -64," } } */
4
/* { dg-final { scan-assembler "and.w -139," } } */
5
/* { dg-final { scan-assembler "and.b -63," } } */
6
/* { dg-final { scan-assembler-not "and.d" } } */
7
/* { dg-options "-O2" } */
8
 
9
/* PR target/17984.  Test-case based on
10
   testsuite/gcc.dg/cris-peep2-xsrand.c.  */
11
 
12
unsigned int
13
andwlsr (unsigned int x)
14
{
15
  return (x >> 16) & 0xff77;
16
}
17
 
18
unsigned int
19
andblsr (unsigned int x)
20
{
21
  return (x >> 24) & 0xc0;
22
}
23
 
24
int
25
andwasr (int x)
26
{
27
  return (x >> 16) & 0xff75;
28
}
29
 
30
int
31
andbasr (int x)
32
{
33
  return (x >> 24) & 0xc1;
34
}

powered by: WebSVN 2.1.0

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