summaryrefslogtreecommitdiff
path: root/gcc/print-rtl-function.c
diff options
context:
space:
mode:
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2016-12-19 20:33:05 +0000
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2016-12-19 20:33:05 +0000
commit43e7db233e1b59f240bd087b536a1a14ce52d2f4 (patch)
treece8a60522de7d096834320eb46f4ea037b8a8d6b /gcc/print-rtl-function.c
parentf85d48f514fb252f07477e629420753a4f2765f1 (diff)
downloadgcc-43e7db233e1b59f240bd087b536a1a14ce52d2f4.tar.gz
print_rtx_function: update example in comment
The patch updates the example dump in the comment for print_rtx_function to reflect various changes: - r241593: addition of insn UIDs - r241908: removal of trailing "(nil)" and other default values - r242023: addition of "param" directives - r243798: change of format of regnos in non-virtual pseudos (from "$2" to "<2>") gcc/ChangeLog: * print-rtl-function.c (print_rtx_function): Update example in comment to reflect current format. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@243812 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/print-rtl-function.c')
-rw-r--r--gcc/print-rtl-function.c44
1 files changed, 21 insertions, 23 deletions
diff --git a/gcc/print-rtl-function.c b/gcc/print-rtl-function.c
index dea84fe02eb..74d8e9ce0d8 100644
--- a/gcc/print-rtl-function.c
+++ b/gcc/print-rtl-function.c
@@ -175,38 +175,36 @@ print_param (FILE *outfile, rtx_writer &w, tree arg)
Example output (with COMPACT==true):
(function "times_two"
+ (param "i"
+ (DECL_RTL (mem/c:SI (plus:DI (reg/f:DI virtual-stack-vars)
+ (const_int -4)) [1 i+0 S4 A32]))
+ (DECL_RTL_INCOMING (reg:SI di [ i ])))
(insn-chain
- (cnote NOTE_INSN_DELETED)
+ (cnote 1 NOTE_INSN_DELETED)
(block 2
(edge-from entry (flags "FALLTHRU"))
- (cnote [bb 2] NOTE_INSN_BASIC_BLOCK)
- (cinsn (set (mem/c:SI (plus:DI (reg/f:DI virtual-stack-vars)
+ (cnote 4 [bb 2] NOTE_INSN_BASIC_BLOCK)
+ (cinsn 2 (set (mem/c:SI (plus:DI (reg/f:DI virtual-stack-vars)
(const_int -4)) [1 i+0 S4 A32])
- (reg:SI di [ i ])) "t.c":2
- (nil))
- (cnote NOTE_INSN_FUNCTION_BEG)
- (cinsn (set (reg:SI %2)
+ (reg:SI di [ i ])) "t.c":2)
+ (cnote 3 NOTE_INSN_FUNCTION_BEG)
+ (cinsn 6 (set (reg:SI <2>)
(mem/c:SI (plus:DI (reg/f:DI virtual-stack-vars)
- (const_int -4)) [1 i+0 S4 A32])) "t.c":3
- (nil))
- (cinsn (parallel [
- (set (reg:SI %0 [ _2 ])
- (ashift:SI (reg:SI %2)
+ (const_int -4)) [1 i+0 S4 A32])) "t.c":3)
+ (cinsn 7 (parallel [
+ (set (reg:SI <0> [ _2 ])
+ (ashift:SI (reg:SI <2>)
(const_int 1)))
(clobber (reg:CC flags))
]) "t.c":3
- (expr_list:REG_EQUAL (ashift:SI (mem/c:SI (plus:DI (reg/f:DI virtual-stack-vars)
+ (expr_list:REG_EQUAL (ashift:SI (mem/c:SI (plus:DI (reg/f:DI virtual-stack-vars)
(const_int -4)) [1 i+0 S4 A32])
- (const_int 1))
- (nil)))
- (cinsn (set (reg:SI %1 [ <retval> ])
- (reg:SI %0 [ _2 ])) "t.c":3
- (nil))
- (cinsn (set (reg/i:SI ax)
- (reg:SI %1 [ <retval> ])) "t.c":4
- (nil))
- (cinsn (use (reg/i:SI ax)) "t.c":4
- (nil))
+ (const_int 1))))
+ (cinsn 10 (set (reg:SI <1> [ <retval> ])
+ (reg:SI <0> [ _2 ])) "t.c":3)
+ (cinsn 14 (set (reg/i:SI ax)
+ (reg:SI <1> [ <retval> ])) "t.c":4)
+ (cinsn 15 (use (reg/i:SI ax)) "t.c":4)
(edge-to exit (flags "FALLTHRU"))
) ;; block 2
) ;; insn-chain