public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Question about ASMCONS
@ 2016-12-19 12:29 Claudiu Zissulescu
  2016-12-19 17:06 ` Segher Boessenkool
  0 siblings, 1 reply; 6+ messages in thread
From: Claudiu Zissulescu @ 2016-12-19 12:29 UTC (permalink / raw)
  To: gcc; +Cc: Francois Bedard

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-12-11 11:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-19 12:29 Question about ASMCONS Claudiu Zissulescu
2016-12-19 17:06 ` Segher Boessenkool
2016-12-19 18:59   ` Claudiu Zissulescu
2018-12-11 10:03     ` Claudiu Zissulescu
2018-12-11 10:34       ` Segher Boessenkool
2018-12-11 11:28         ` Claudiu Zissulescu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).