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.c-torture/] [compile/] [pr38789.c] - Blame information for rev 378

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

Line No. Rev Author Line
1 297 jeremybenn
/* PR tree-optimization/38789 */
2
/* { dg-do compile } */
3
 
4
void
5
baz (int v)
6
{
7
  unsigned a = (v == 1) ? 1 : 2;
8
 
9
  if (__builtin_constant_p (a))
10
    asm volatile ("# constant %0" :: "i" (a));
11
  else
12
    asm volatile ("# register %0" :: "r" (a));
13
 
14
  a = 6;
15
  if (__builtin_constant_p (a))
16
    asm volatile ("# constant %0" :: "i" (a));
17
  else
18
    asm volatile ("# register %0" :: "r" (a));
19
}

powered by: WebSVN 2.1.0

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