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/10396] Constraint alternatives cause error " `asm' operand requires impossible reload"


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-21 00:23 -------
Confirmed, here is a shorter example:
int multiplyFixedPoint(int *mantissaA,int *mantissaB) {
  int result;
  int temp;

  asm("# %0 %1 %2 %3"
  : "=&r"(result), "=&r"(temp) // outputs
    : "%r"(*mantissaA), "01r"(*mantissaB - *mantissaA)  // inputs
  );
  *mantissaB = result;
  asm("# %0 %1 %2 %3"
   : "=&r"(result), "=&r"(temp) // outputs
    : "%r"(*mantissaA - *mantissaB), "01r"(*mantissaB)  // inputs
  );
  return result;
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |NEW
          Component|inline-asm                  |rtl-optimization


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


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