1 /* { dg-do compile { target lp64 } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-options "-O2 -mno-pcrel" } */
4 /* { dg-final { scan-assembler {ld 2,(24|40)\(1\)} } } */
5
6 /* From a linux kernel mis-compile of net/core/skbuff.c. */
7 register unsigned long current_r1 asm ("r1");
8
9 void f (unsigned int n, void (*fun) (unsigned long))
10 {
11 while (n--)
12 (*fun) (current_r1 & -0x1000);
13 }