Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.target/bpf/xbpf-callee-saved-regs-2.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
145:1830386684a0 | 152:2b5abeee2509 |
---|---|
1 /* { dg-do compile } */ | |
2 /* { dg-options "-mno-xbpf" } */ | |
3 | |
4 /* GCC should not save and restore callee-saved registers unless | |
5 generating code for xBPF. */ | |
6 | |
7 int | |
8 foo () | |
9 { | |
10 register int f asm ("r6"); | |
11 | |
12 f = 20; | |
13 return f + 1; | |
14 } | |
15 | |
16 /* { dg-final { scan-assembler-not "stxdw\t\\\[%fp\\+-8\\\],%r6" } } */ | |
17 /* { dg-final { scan-assembler-not "ldxdw\t%r6,\\\[%fp\\+-8\\\]" } } */ |