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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [mips/] [truncate-5.c] - Blame information for rev 321

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 321 jeremybenn
/* If we AND in DI mode (i.e. replace the order of TRUNCATE and AND) then we
2
   can remove the TRUNCATE.  */
3
/* { dg-options "-O -mgp64" } */
4
/* { dg-final { scan-assembler-not "\tsll\t\[^\n\]*,0" } } */
5
 
6
struct s
7
{
8
  unsigned a:5;
9
};
10
 
11
NOMIPS16 void
12
f (struct s *s, unsigned long long a)
13
{
14
  s->a = a & 0x3;
15
}

powered by: WebSVN 2.1.0

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