| 1 |
/* { dg-do compile { target aarch64*-*-* } } */ |
| 2 |
/* { dg-require-effective-target lp64 } */ |
| 3 |
/* { dg-options "-O -fdisable-rtl-postreload -fpeephole2 -fno-schedule-fusion" } */ |
| 4 |
|
| 5 |
extern int data[]; |
| 6 |
|
| 7 |
void __RTL (startwith ("ira")) foo (void *ptr) |
| 8 |
{ |
| 9 |
(function "foo" |
| 10 |
(param "ptr" |
| 11 |
(DECL_RTL (reg/v:DI <0> [ ptr ])) |
| 12 |
(DECL_RTL_INCOMING (reg/v:DI x0 [ ptr ])) |
| 13 |
) ;; param "ptr" |
| 14 |
(insn-chain |
| 15 |
(block 2 |
| 16 |
(edge-from entry (flags "FALLTHRU")) |
| 17 |
(cnote 3 [bb 2] NOTE_INSN_BASIC_BLOCK) |
| 18 |
(insn 4 (set (reg:DI <0>) (reg:DI x0))) |
| 19 |
(insn 5 (set (reg:DI <1>) |
| 20 |
(plus:DI (reg:DI <0>) (const_int 768)))) |
| 21 |
(insn 6 (set (mem:SI (plus:DI (reg:DI <0>) |
| 22 |
(const_int 508)) [1 &data+508 S4 A4]) |
| 23 |
(const_int 0))) |
| 24 |
(insn 7 (set (mem:SI (plus:DI (reg:DI <1>) |
| 25 |
(const_int -256)) [1 &data+512 S4 A4]) |
| 26 |
(const_int 0))) |
| 27 |
(edge-to exit (flags "FALLTHRU")) |
| 28 |
) ;; block 2 |
| 29 |
) ;; insn-chain |
| 30 |
) ;; function |
| 31 |
} |
| 32 |
|
| 33 |
void __RTL (startwith ("ira")) bar (void *ptr) |
| 34 |
{ |
| 35 |
(function "bar" |
| 36 |
(param "ptr" |
| 37 |
(DECL_RTL (reg/v:DI <0> [ ptr ])) |
| 38 |
(DECL_RTL_INCOMING (reg/v:DI x0 [ ptr ])) |
| 39 |
) ;; param "ptr" |
| 40 |
(insn-chain |
| 41 |
(block 2 |
| 42 |
(edge-from entry (flags "FALLTHRU")) |
| 43 |
(cnote 3 [bb 2] NOTE_INSN_BASIC_BLOCK) |
| 44 |
(insn 4 (set (reg:DI <0>) (reg:DI x0))) |
| 45 |
(insn 5 (set (reg:DI <1>) |
| 46 |
(plus:DI (reg:DI <0>) (const_int 768)))) |
| 47 |
(insn 6 (set (mem:SI (plus:DI (reg:DI <1>) |
| 48 |
(const_int -256)) [1 &data+512 S4 A4]) |
| 49 |
(const_int 0))) |
| 50 |
(insn 7 (set (mem:SI (plus:DI (reg:DI <0>) |
| 51 |
(const_int 508)) [1 &data+508 S4 A4]) |
| 52 |
(const_int 0))) |
| 53 |
(edge-to exit (flags "FALLTHRU")) |
| 54 |
) ;; block 2 |
| 55 |
) ;; insn-chain |
| 56 |
) ;; function |
| 57 |
} |