1 /* Inspired from bitmap_or_and function in sbitmap.c. */
3 /* { dg-options "-O2 -fmodulo-sched -fmodulo-sched-allow-regmoves -fdump-rtl-sms" } */
4 /* { dg-options "-O2 -fmodulo-sched -fmodulo-sched-allow-regmoves -fdump-rtl-sms --param sms-min-sc=1" { target powerpc*-*-* } } */
6 extern void abort (void);
8 int a
[5] = { 0, 1, 0, 0, 0 };
9 int b
[5] = { 0, 1, 0, 1, 0 };
10 int c
[5] = { 0, 0, 1, 1, 0 };
11 int dst
[5] = { 0, 0, 0, 0, 0 };
13 __attribute__ ((noinline
))
15 foo (int size
, int *ap
, int *bp
, int *cp
, int *dstp
)
17 unsigned int i
, n
= size
;
20 for (i
= 0; i
< n
; i
++)
22 const int tmp
= *ap
++ | (*bp
++ & *cp
++);
23 changed
|= *dstp
^ tmp
;
34 foo (5, a
, b
, c
, dst
);
38 /* { dg-final { scan-rtl-dump-times "SMS succeeded" 1 "sms" { target spu-*-* powerpc*-*-* } } } */