Commit f4077222 by David Malcolm Committed by David Malcolm

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.

From-SVN: r243812
parent 6418b077
2016-12-19 David Malcolm <dmalcolm@redhat.com>
* print-rtl-function.c (print_rtx_function): Update
example in comment to reflect current format.
2016-12-19 Uros Bizjak <ubizjak@gmail.com> 2016-12-19 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.md (*popcounthi2_1): New insn_and_split pattern. * config/i386/i386.md (*popcounthi2_1): New insn_and_split pattern.
...@@ -175,38 +175,36 @@ print_param (FILE *outfile, rtx_writer &w, tree arg) ...@@ -175,38 +175,36 @@ print_param (FILE *outfile, rtx_writer &w, tree arg)
Example output (with COMPACT==true): Example output (with COMPACT==true):
(function "times_two" (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 (insn-chain
(cnote NOTE_INSN_DELETED) (cnote 1 NOTE_INSN_DELETED)
(block 2 (block 2
(edge-from entry (flags "FALLTHRU")) (edge-from entry (flags "FALLTHRU"))
(cnote [bb 2] NOTE_INSN_BASIC_BLOCK) (cnote 4 [bb 2] NOTE_INSN_BASIC_BLOCK)
(cinsn (set (mem/c:SI (plus:DI (reg/f:DI virtual-stack-vars) (cinsn 2 (set (mem/c:SI (plus:DI (reg/f:DI virtual-stack-vars)
(const_int -4)) [1 i+0 S4 A32]) (const_int -4)) [1 i+0 S4 A32])
(reg:SI di [ i ])) "t.c":2 (reg:SI di [ i ])) "t.c":2)
(nil)) (cnote 3 NOTE_INSN_FUNCTION_BEG)
(cnote NOTE_INSN_FUNCTION_BEG) (cinsn 6 (set (reg:SI <2>)
(cinsn (set (reg:SI %2)
(mem/c:SI (plus:DI (reg/f:DI virtual-stack-vars) (mem/c:SI (plus:DI (reg/f:DI virtual-stack-vars)
(const_int -4)) [1 i+0 S4 A32])) "t.c":3 (const_int -4)) [1 i+0 S4 A32])) "t.c":3)
(nil)) (cinsn 7 (parallel [
(cinsn (parallel [ (set (reg:SI <0> [ _2 ])
(set (reg:SI %0 [ _2 ]) (ashift:SI (reg:SI <2>)
(ashift:SI (reg:SI %2)
(const_int 1))) (const_int 1)))
(clobber (reg:CC flags)) (clobber (reg:CC flags))
]) "t.c":3 ]) "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 -4)) [1 i+0 S4 A32])
(const_int 1)) (const_int 1))))
(nil))) (cinsn 10 (set (reg:SI <1> [ <retval> ])
(cinsn (set (reg:SI %1 [ <retval> ]) (reg:SI <0> [ _2 ])) "t.c":3)
(reg:SI %0 [ _2 ])) "t.c":3 (cinsn 14 (set (reg/i:SI ax)
(nil)) (reg:SI <1> [ <retval> ])) "t.c":4)
(cinsn (set (reg/i:SI ax) (cinsn 15 (use (reg/i:SI ax)) "t.c":4)
(reg:SI %1 [ <retval> ])) "t.c":4
(nil))
(cinsn (use (reg/i:SI ax)) "t.c":4
(nil))
(edge-to exit (flags "FALLTHRU")) (edge-to exit (flags "FALLTHRU"))
) ;; block 2 ) ;; block 2
) ;; insn-chain ) ;; insn-chain
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment