Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / gcc.target / sh / pr57108.c
1 /* { dg-do compile { target "sh*-*-*" } } */
2 /* { dg-options "-O1" } */
3
4 void __assert_func (void) __attribute__ ((__noreturn__)) ;
5
6 void ATATransfer (int num, int buffer)
7 {
8  int wordCount;
9
10  while (num > 0)
11   {
12     wordCount = num * 512 / sizeof (int);
13
14     ((0 == (buffer & 63)) ? (void)0 : __assert_func () );
15     ((0 == (wordCount & 31)) ? (void)0 : __assert_func ());
16   }
17
18
19  }