Debian Codegraph @

gcc/testsuite/gcc.target/vax/push.c

raw
1 /* { dg-do compile } */
2
3 void bar (void (*) (void), int, int);
4
5 void
6 foo (void)
7 {
8 bar (foo, 1, 0);
9 }
10
11 /* Expect assembly like:
12
13 pushl $0
14 pushl $1
15 pushab foo
16 calls $3,bar
17
18 rather than:
19
20 clrl -(%sp)
21 movl $1,-(%sp)
22 movab foo,-(%sp)
23 calls $3,bar
24
25 */
26
27 /* { dg-final { scan-assembler "\[ \t\]+pushl\[ \t\]+\\\$0\n\[ \t\]+pushl\[ \t\]+\\\$1\n\[ \t\]+pushab\[ \t\]+foo\n" } } */