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

Unified Diff: src/IceInstARM32.cpp

Issue 1639923002: Subzero. ARM32. Vector lowering. Subtract. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 11 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/IceInstARM32.cpp
diff --git a/src/IceInstARM32.cpp b/src/IceInstARM32.cpp
index 03b65dd79cd2b9a2a71ea6c6e07b58abbc7f0bb5..5ef9c61d9a1dfaa0893dc4cd287e52b7c4b90e8c 100644
--- a/src/IceInstARM32.cpp
+++ b/src/IceInstARM32.cpp
@@ -651,13 +651,17 @@ template <> void InstARM32Vsub::emitIAS(const Cfg *Func) const {
Asm->setNeedsTextFixup();
John 2016/01/26 19:07:17 remove Asm->setNeedsTextFixup(); and invoke emitUs
Eric Holk 2016/01/26 22:56:38 Done.
break;
case IceType_f32:
+ assert(!Asm->needsTextFixup());
Asm->vsubs(getDest(), getSrc(0), getSrc(1), CondARM32::AL);
John 2016/01/26 19:07:17 move the assert below Asm->vsub()
Eric Holk 2016/01/26 22:56:38 Done.
break;
case IceType_f64:
+ assert(!Asm->needsTextFixup());
Asm->vsubd(getDest(), getSrc(0), getSrc(1), CondARM32::AL);
break;
}
- assert(!Asm->needsTextFixup());
+ if (Asm->needsTextFixup()) {
John 2016/01/26 19:07:17 remove this
Eric Holk 2016/01/26 22:56:38 Done.
+ emitUsingTextFixup(Func);
+ }
}
template <> void InstARM32Vmul::emitIAS(const Cfg *Func) const {

Powered by Google App Engine
This is Rietveld 408576698