Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.target / powerpc / ppc-and-1.c
blob3cd394b27e4b0a495a5b26db370b30505d0de1f5
1 /* { dg-do compile { target powerpc64-*-* } } */
2 /* { dg-require-effective-target lp64 } */
3 /* { dg-options "-O2" } */
5 /* { dg-final { scan-assembler "rlwinm r?\[0-9\]+,r?\[0-9\]+,0,0,30" } } */
6 /* { dg-final { scan-assembler "rlwinm r?\[0-9\]+,r?\[0-9\]+,0,29,30" } } */
7 /* { dg-final { scan-assembler-not "rldicr" } } */
9 /* Origin:Pete Steinmetz <steinmtz@us.ibm.com> */
11 /* PR 16457 - use rlwinm insn. */
13 char *foo1 (char *p, unsigned int x)
15 return p - (x & ~1);
18 char *foo2 (char *p, unsigned int x)
20 return p - (x & 6);