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-constant4.c] - Blame information for rev 691

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* Ensure replicated constants don't make things worse.  */
2
/* { dg-options "-mthumb -O2" } */
3
/* { dg-require-effective-target arm_thumb2_ok } */
4
 
5
int
6
foo1 (int a)
7
{
8
  /* It might be tempting to use 0x01000100, but it wouldn't help. */
9
  return a + 0x01f001e0;
10
}
11
 
12
/* { dg-final { scan-assembler "add.*#32505856" } } */
13
/* { dg-final { scan-assembler "add.*#480" } } */
14
 
15
int
16
foo2 (int a)
17
{
18
  return a + 0x0f100e10;
19
}
20
 
21
/* { dg-final { scan-assembler "add.*#252706816" } } */
22
/* { dg-final { scan-assembler "add.*#3600" } } */

powered by: WebSVN 2.1.0

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