mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-16 12:53:14 +01:00
[svn r238] use *m for memory input constraints and pass in their address
This commit is contained in:
@@ -256,7 +256,7 @@ AsmStatement::toIR(IRState * irs)
|
||||
|
||||
static std::string i_cns = "i";
|
||||
static std::string p_cns = "p";
|
||||
static std::string m_cns = "m";
|
||||
static std::string m_cns = "*m";
|
||||
static std::string mw_cns = "=*m";
|
||||
static std::string mrw_cns = "+m";
|
||||
static std::string memory_name = "memory";
|
||||
|
||||
@@ -1913,12 +1913,10 @@ struct AsmProcessor
|
||||
insnTemplate->writebyte('*');
|
||||
use_star = false;
|
||||
}
|
||||
if (mode == Mode_Output)
|
||||
{
|
||||
e = new AddrExp(0, e);
|
||||
assert(decl);
|
||||
e->type = decl->type->pointerTo();
|
||||
}
|
||||
e = new AddrExp(0, e);
|
||||
assert(decl);
|
||||
e->type = decl->type->pointerTo();
|
||||
|
||||
addOperand(fmt, Arg_Memory, e, asmcode, mode);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user