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-constant1.c] - Blame information for rev 764

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

Line No. Rev Author Line
1 691 jeremybenn
/* Ensure simple replicated constant immediates work.  */
2
/* { dg-options "-mthumb -O2" } */
3
/* { dg-require-effective-target arm_thumb2_ok } */
4
 
5
int
6
foo1 (int a)
7
{
8
  return a + 0xfefefefe;
9
}
10
 
11
/* { dg-final { scan-assembler "add.*#-16843010" } } */
12
 
13
int
14
foo2 (int a)
15
{
16
  return a - 0xab00ab00;
17
}
18
 
19
/* { dg-final { scan-assembler "sub.*#-1426019584" } } */
20
 
21
int
22
foo3 (int a)
23
{
24
  return a & 0x00cd00cd;
25
}
26
 
27
/* { dg-final { scan-assembler "and.*#13435085" } } */

powered by: WebSVN 2.1.0

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