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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [old-style-asm-1.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* PR inline-asm/8832 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -dP" } */
4
 
5
/* Verify that GCC doesn't optimize
6
   old style asm instructions.  */
7
 
8
void foo(int v)
9
{
10
  if (v)
11
    asm ("dummy1");
12
 
13
  asm ("dummy2");
14
 
15
  if (v)
16
    asm ("dummy3");
17
}
18
 
19
/* The purpose of the test below is to check that there are two branches
20
   in the generated code, supposedly corresponding to the if-statements.
21
   It tries to check for jump_insn (set (pc) pattern, so that jump_insns
22
   corresponding to return are not taken into account.  */
23
/* { dg-final { scan-assembler "jump_insn.*set \\(pc\\).*jump_insn.*set \\(pc\\)"} } */

powered by: WebSVN 2.1.0

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