| Index: src/IceInstARM32.cpp
|
| diff --git a/src/IceInstARM32.cpp b/src/IceInstARM32.cpp
|
| index d592ea9ec4eef18199bfb324dfb107177f01aa72..15dc449238f65455e7fbcd72895298e2d533524e 100644
|
| --- a/src/IceInstARM32.cpp
|
| +++ b/src/IceInstARM32.cpp
|
| @@ -1181,6 +1181,17 @@ template <> void InstARM32Ldrex::emit(const Cfg *Func) const {
|
| getSrc(0)->emit(Func);
|
| }
|
|
|
| +template <> void InstARM32Ldrex::emitIAS(const Cfg *Func) const {
|
| + assert(getSrcSize() == 1);
|
| + assert(getDest()->hasReg());
|
| + Variable *Dest = getDest();
|
| + assert(isScalarIntegerType(Dest->getType()));
|
| + auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
|
| + Asm->ldrex(Dest, getSrc(0), getPredicate(), Func->getTarget());
|
| + if (Asm->needsTextFixup())
|
| + emitUsingTextFixup(Func);
|
| +}
|
| +
|
| template <InstARM32::InstKindARM32 K>
|
| void InstARM32TwoAddrGPR<K>::emitIAS(const Cfg *Func) const {
|
| emitUsingTextFixup(Func);
|
| @@ -1582,6 +1593,16 @@ void InstARM32Strex::emit(const Cfg *Func) const {
|
| emitSources(Func);
|
| }
|
|
|
| +void InstARM32Strex::emitIAS(const Cfg *Func) const {
|
| + assert(getSrcSize() == 2);
|
| + const Operand *Src0 = getSrc(0);
|
| + assert(isScalarIntegerType(Src0->getType()));
|
| + auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
|
| + Asm->strex(Dest, Src0, getSrc(1), getPredicate(), Func->getTarget());
|
| + if (Asm->needsTextFixup())
|
| + emitUsingTextFixup(Func);
|
| +}
|
| +
|
| void InstARM32Strex::dump(const Cfg *Func) const {
|
| if (!BuildDefs::dump())
|
| return;
|
|
|