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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [mips/] [truncate-5.c] - Rev 704

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

/* If we AND in DI mode (i.e. replace the order of TRUNCATE and AND) then we
   can remove the TRUNCATE.  */
/* { dg-options "-O -mgp64" } */
/* { dg-final { scan-assembler-not "\tsll\t\[^\n\]*,0" } } */
 
struct s
{
  unsigned a:5;
};
 
NOMIPS16 void
f (struct s *s, unsigned long long a)
{
  s->a = a & 0x3;
}
 

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

powered by: WebSVN 2.1.0

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