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

Unified Diff: src/IceInstARM32.cpp

Issue 1603893003: Add vstr{s,d} to the integrated ARM assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add Dart files. 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 a1605828e3eae08637d8615c6632cd633303a5de..f38ec7c66390fd4c39351dabf61a810aa4abca9d 100644
--- a/src/IceInstARM32.cpp
+++ b/src/IceInstARM32.cpp
@@ -1663,7 +1663,12 @@ void InstARM32Str::emitIAS(const Cfg *Func) const {
assert(getSrcSize() == 2);
Type Ty = getSrc(0)->getType();
auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
- if (isVectorType(Ty) || isScalarFloatingType(Ty))
+ if (isScalarFloatingType(Ty)) {
+ if (Ty == IceType_f32)
+ Asm->vstrs(getSrc(0), getSrc(1), getPredicate(), Func->getTarget());
+ else
+ Asm->vstrd(getSrc(0), getSrc(1), getPredicate(), Func->getTarget());
+ } else if (isVectorType(Ty))
// TODO(kschimpf) Handle case.
Asm->setNeedsTextFixup();
else

Powered by Google App Engine
This is Rietveld 408576698