1 /* { dg-do compile } */
2 /* { dg-options "-mxbpf" } */
3 
4 /* GCC should save and restore callee-saved registers when generating
5    code for xBPF.  */
6 
7 int
foo()8 foo ()
9 {
10   register int f asm ("r6");
11 
12   f = 20;
13   return f + 1;
14 }
15 
16 /* { dg-final { scan-assembler "stxdw\t\\\[%fp\\+-8\\\],%r6" } } */
17 /* { dg-final { scan-assembler "ldxdw\t%r6,\\\[%fp\\+-8\\\]" } } */
18