This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Question about ASMCONS
- From: Claudiu Zissulescu <Claudiu dot Zissulescu at synopsys dot com>
- To: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Cc: Francois Bedard <Francois dot Bedard at synopsys dot com>
- Date: Mon, 19 Dec 2016 12:28:54 +0000
- Subject: Question about ASMCONS
- Authentication-results: sourceware.org; auth=none
Hi guys,
I have the following rtl before asmcons pass:
(insn 8 13 9 2 (set (reg:SI 157 [ list ])
(asm_operands:SI ("") ("=g") 0 [
(const:SI (unspec:SI [
(symbol_ref:SI ("c_const") [flags 0x2] <var_decl 0x7f6735ad25a0 c_const>)
] ARC_UNSPEC_GOTOFFPC))
]
[
(asm_input:SI ("0") ../t02.c:9)
]
[] ../t02.c:9)) ../t02.c:9 -1
(nil))
Asmcons pass leads to this:
(insn 13 3 8 2 (set (reg:SI 157 [ list ])
(const:SI (unspec:SI [
(symbol_ref:SI ("c_const") [flags 0x2] <var_decl 0x7fd69f6365a0 c_const>)
] ARC_UNSPEC_GOTOFFPC))) ../t02.c:9 -1
(nil))
(insn 8 13 9 2 (set (reg:SI 157 [ list ])
(asm_operands:SI ("") ("=g") 0 [
(const:SI (unspec:SI [
(symbol_ref:SI ("c_const") [flags 0x2] <var_decl 0x7fd69f6365a0 c_const>)
] ARC_UNSPEC_GOTOFFPC))
]
[
(asm_input:SI ("0") ../t02.c:9)
]
[] ../t02.c:9)) ../t02.c:9 -1
(nil))
Is the above output correct? My understanding is that the insn 8 needs be changed to have as input the reg:SI 157.
Thanks,
Claudiu