aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/m68k/pr36133.c
blob: 25237a860502fcc943d02c6314c4fe76eb6e1a43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* pr36133.c

   This test ensures that conditional branches can use the condition codes
   written by shift instructions, without the need for an extra TST.  */

/* { dg-do compile }  */
/* { dg-options "-O2" }  */
/* { dg-final { scan-assembler-not "tst" } } */

void
f (unsigned int a)
{
  if (a >> 4)
    asm volatile ("nop");
  asm volatile ("nop");
}