Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Unified Diff: src/IceInstX8632.cpp

Issue 944333002: Subzero: Update tests and build scripts for sandboxing. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Remove old assignment of llcbin and gold Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/IceInstX8632.cpp
diff --git a/src/IceInstX8632.cpp b/src/IceInstX8632.cpp
index 815b617cc7da320f33dd7fc2a49ee2f25598af19..02abec0eeb75a6d187ba247e51577dbb6306d29e 100644
--- a/src/IceInstX8632.cpp
+++ b/src/IceInstX8632.cpp
@@ -1618,6 +1618,7 @@ void InstX8632Cmpxchg::emit(const Cfg *Func) const {
if (!ALLOW_DUMP)
return;
Ostream &Str = Func->getContext()->getStrEmit();
+ emitPrefix(Str);
assert(getSrcSize() == 3);
if (Locked) {
Str << "\tlock";
@@ -1626,6 +1627,7 @@ void InstX8632Cmpxchg::emit(const Cfg *Func) const {
getSrc(2)->emit(Func);
Str << ", ";
getSrc(0)->emit(Func);
+ emitSuffix(Str);
}
void InstX8632Cmpxchg::emitIAS(const Cfg *Func) const {
@@ -1661,12 +1663,14 @@ void InstX8632Cmpxchg8b::emit(const Cfg *Func) const {
if (!ALLOW_DUMP)
return;
Ostream &Str = Func->getContext()->getStrEmit();
+ emitPrefix(Str);
assert(getSrcSize() == 5);
if (Locked) {
Str << "\tlock";
}
Str << "\tcmpxchg8b\t";
getSrc(0)->emit(Func);
+ emitSuffix(Str);
}
void InstX8632Cmpxchg8b::emitIAS(const Cfg *Func) const {
@@ -2710,6 +2714,7 @@ void InstX8632Xadd::emit(const Cfg *Func) const {
if (!ALLOW_DUMP)
return;
Ostream &Str = Func->getContext()->getStrEmit();
+ emitPrefix(Str);
if (Locked) {
Str << "\tlock";
}
@@ -2717,6 +2722,7 @@ void InstX8632Xadd::emit(const Cfg *Func) const {
getSrc(1)->emit(Func);
Str << ", ";
getSrc(0)->emit(Func);
+ emitSuffix(Str);
}
void InstX8632Xadd::emitIAS(const Cfg *Func) const {
« src/IceInstX8632.h ('K') | « src/IceInstX8632.h ('k') | src/IceTargetLowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698