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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [arm/] [thumb2-replicated-constant3.c] - Rev 708

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

/* Ensure negated/inverted replicated constant immediates work.  */
/* { dg-options "-mthumb -O2" } */
/* { dg-require-effective-target arm_thumb2_ok } */
 
int
foo1 (int a)
{
  return a | 0xffffff00;
}
 
/* { dg-final { scan-assembler "orn.*#255" } } */
 
int
foo2 (int a)
{
  return a & 0xffeeffee;
}
 
/* { dg-final { scan-assembler "bic.*#1114129" } } */
 
int
foo3 (int a)
{
  return a & 0xaaaaaa00;
}
 
/* { dg-final { scan-assembler "and.*#-1431655766" } } */
/* { dg-final { scan-assembler "bic.*#170" } } */
 

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.