1 /* { dg-do compile } */
2 /* { dg-options "-O3 -march=z10 -mzarch --save-temps -mfunction-return-mem=thunk-extern -mindirect-branch-table" } */
6 int __attribute__((noinline
,noclone
))
12 void __attribute__((noinline
,noclone
))
20 for (i
= 0; i
< a
; i
++)
34 /* With -march=z10 -mzarch the shrink wrapped returns use compare and
35 swap relative to jump to the exit block instead of making use of
36 the conditional return pattern.
37 FIXME: Use compare and branch register for that!!!! */
40 /* { dg-final { scan-assembler-times "jg\t__s390_indirect_jump" 3 } } */
42 /* No thunks due to thunk-extern. */
43 /* { dg-final { scan-assembler-not "exrl" } } */
44 /* { dg-final { scan-assembler-not ".globl __s390_indirect_jump" } } */
46 /* { dg-final { scan-assembler-not "section\t.s390_indirect_jump" } } */
47 /* { dg-final { scan-assembler-not "section\t.s390_indirect_call" } } */
48 /* { dg-final { scan-assembler-not "section\t.s390_return_reg" } } */
49 /* { dg-final { scan-assembler "section\t.s390_return_mem" } } */