This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug rtl-optimization/47502] [x32] canât find a register in class âSIREGâ while reloading âasmâ


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47502

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot
                   |                            |gnu.org
          Component|target                      |rtl-optimization

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2011-01-28 00:12:14 UTC ---
Combine ignores asm constraints and turns

           (set (reg:SI 64 [ resultvar ])
                (asm_operands/v:SI ("int $0x80
    ") ("=a") 0 [
                        (reg:SI 65)
                        (subreg/s/u:SI (reg/v/f:DI 62 [ xxxxx ]) 0)
                        (subreg/s/u:SI (reg/v/f:DI 63 [ yyyyy ]) 0)
                        (reg:SI 66)
                    ]
                     [
                        (asm_input:SI ("0") (null):0)
                        (asm_input:SI ("c") (null):0)
                        (asm_input:SI ("d") (null):0)
                        (asm_input:SI ("S") (null):0)
                    ]
                     [] x.i:10))
            (clobber (reg:QI 18 fpsr))
            (clobber (reg:QI 17 flags))
            (clobber (mem:BLK (scratch) [0 A8]))
        ]) x.i:5 -1

into

       (set (reg:SI 64 [ resultvar ])
            (asm_operands/v:SI ("int $0x80
    ") ("=a") 0 [
                    (reg:SI 65)
                    (reg:SI 5 di [ xxxxx ])
                    (subreg/s/u:SI (reg/v/f:DI 63 [ yyyyy ]) 0)
                    (reg:SI 66)
                ]
                 [
                    (asm_input:SI ("0") (null):0)
                    (asm_input:SI ("c") (null):0)
                    (asm_input:SI ("d") (null):0)
                    (asm_input:SI ("S") (null):0)
                ]
                 [] x.i:10))
        (clobber (reg:QI 18 fpsr))
        (clobber (reg:QI 17 flags))
        (clobber (mem:BLK (scratch) [0 A8]))
    ])

Things go downhill from here.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]