Add "__RTL" to cc1
[official-gcc.git] / gcc / testsuite / gcc.dg / rtl / aarch64 / pr71779.c
blob9174abbb9c989afd591c174c67ea5a4caf34330d
1 /* { dg-do compile { target aarch64-*-* } } */
2 /* { dg-options "-fdump-rtl-cse1" } */
4 /* Dump taken from comment 2 of PR 71779, of
5 "...the relevant memory access coming out of expand"
6 hand-edited to the compact dump format. */
8 int __RTL (startwith ("cse1")) test (int n)
10 (function "fragment"
11 (param "n"
12 (DECL_RTL (reg/v:SI <1> [ n ]))
13 (DECL_RTL_INCOMING (reg:SI x0 [ n ]))
14 ) ;; param "n"
15 (insn-chain
16 (block 2
17 (edge-from entry (flags "FALLTHRU"))
18 (cnote 6 [bb 2] NOTE_INSN_BASIC_BLOCK)
20 ;; MEM[(struct isl_obj *)&obj1] = &isl_obj_map_vtable;
21 (insn 1045 (set (reg:SI <480>)
22 (high:SI (symbol_ref:SI ("isl_obj_map_vtable")
23 [flags 0xc0]
24 <var_decl 0x7fa0363ea240 isl_obj_map_vtable>)))
25 "y.c":12702)
26 (insn 1046 (set (reg/f:SI <479>)
27 (lo_sum:SI (reg:SI <480>)
28 (symbol_ref:SI ("isl_obj_map_vtable")
29 [flags 0xc0]
30 <var_decl 0x7fa0363ea240 isl_obj_map_vtable>)))
31 "y.c":12702
32 (expr_list:REG_EQUAL (symbol_ref:SI ("isl_obj_map_vtable")
33 [flags 0xc0]
34 <var_decl 0x7fa0363ea240 isl_obj_map_vtable>)))
35 (insn 1047 (set (reg:DI <481>)
36 (subreg:DI (reg/f:SI <479>) 0)) "y.c":12702)
37 (insn 1048 (set (zero_extract:DI (reg/v:DI <191> [ obj1D.17368 ])
38 (const_int 32)
39 (const_int 0))
40 (reg:DI <481>)) "y.c":12702)
41 ;; Extra insn, to avoid all of the above from being deleted by DCE
42 (insn 1049 (set (mem:DI (reg:DI <191>) [1 i+0 S4 A32])
43 (const_int 1)))
44 (edge-to exit (flags "FALLTHRU"))
45 ) ;; block 2
46 ) ;; insn-chain
47 ) ;; function
50 /* TODO: scan the dump. */