[RTL ifcvt] PR 67786, 67787: Check that intermediate instructions in the basic block...
[official-gcc.git] / gcc / testsuite / gcc.dg / 20061124-1.c
blob26c35f75a0036a89fdcce4730dce1b8139197c31
1 /* { dg-do run } */
2 /* { dg-require-effective-target sync_char_short } */
3 /* { dg-options "-mcpu=v9" { target sparc*-*-* } } */
5 /* This testcase failed on s390 because no compare instruction for
6 the check of FLAG was emitted. */
8 unsigned short int count = 0;
9 int flag = 1;
11 extern void abort (void);
12 extern void exit (int);
14 int
15 main ()
17 __sync_add_and_fetch (&count, -1);
19 if (!flag)
20 abort ();
21 exit (0);