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 middle-end/70370] ICE in execute_todo, at passes.c:2003 when using __real__ or __imag__ as lvalue in asm


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70370

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|aarch64                     |
             Status|NEW                         |ASSIGNED
          Component|c                           |middle-end
            Version|unknown                     |6.0
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
I think it's ok to use __real/__imag as lvalue.  The ICE is odd, it appears
after ipa-pure-const (pass_nothrow).

Ah, but the ASM misses virtual operands after into-SSA thus this looks like
an operand scanner issue.

Target independent testcase:

_Complex float foo (_Complex float f)
{
  __asm__ ("" : "=r" (__real f));
  return f;
}

the issue is you need a memory constraint to use a memory input here or
rather the issue is we fail to properly gimplify this.

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