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

Side by Side Diff: src/IceAssemblerARM32.h

Issue 1540653003: Add VADD instruction to the ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits and show extracted DART code. Created 5 years 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 unified diff | Download patch
OLDNEW
1 //===- subzero/src/IceAssemblerARM32.h - Assembler for ARM32 ----*- C++ -*-===// 1 //===- subzero/src/IceAssemblerARM32.h - Assembler for ARM32 ----*- C++ -*-===//
2 // 2 //
3 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 3 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
4 // for details. All rights reserved. Use of this source code is governed by a 4 // for details. All rights reserved. Use of this source code is governed by a
5 // BSD-style license that can be found in the LICENSE file. 5 // BSD-style license that can be found in the LICENSE file.
6 // 6 //
7 // Modified by the Subzero authors. 7 // Modified by the Subzero authors.
8 // 8 //
9 //===----------------------------------------------------------------------===// 9 //===----------------------------------------------------------------------===//
10 // 10 //
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 311
312 void udiv(const Operand *OpRd, const Operand *OpRn, const Operand *OpSrc1, 312 void udiv(const Operand *OpRd, const Operand *OpRn, const Operand *OpSrc1,
313 CondARM32::Cond Cond); 313 CondARM32::Cond Cond);
314 314
315 void umull(const Operand *OpRdLo, const Operand *OpRdHi, const Operand *OpRn, 315 void umull(const Operand *OpRdLo, const Operand *OpRdHi, const Operand *OpRn,
316 const Operand *OpRm, CondARM32::Cond Cond); 316 const Operand *OpRm, CondARM32::Cond Cond);
317 317
318 // Implements uxtb/uxth depending on type of OpSrc0. 318 // Implements uxtb/uxth depending on type of OpSrc0.
319 void uxt(const Operand *OpRd, const Operand *OpSrc0, CondARM32::Cond Cond); 319 void uxt(const Operand *OpRd, const Operand *OpSrc0, CondARM32::Cond Cond);
320 320
321 void vaddd(const Operand *OpDd, const Operand *OpDn, const Operand *OpDm,
322 CondARM32::Cond Cond);
323
324 void vadds(const Operand *OpSd, const Operand *OpSn, const Operand *OpSm,
325 CondARM32::Cond Cond);
326
321 void vpop(const Variable *OpBaseReg, SizeT NumConsecRegs, 327 void vpop(const Variable *OpBaseReg, SizeT NumConsecRegs,
322 CondARM32::Cond Cond); 328 CondARM32::Cond Cond);
323 329
324 void vpush(const Variable *OpBaseReg, SizeT NumConsecRegs, 330 void vpush(const Variable *OpBaseReg, SizeT NumConsecRegs,
325 CondARM32::Cond Cond); 331 CondARM32::Cond Cond);
326 332
327 static bool classof(const Assembler *Asm) { 333 static bool classof(const Assembler *Asm) {
328 return Asm->getKind() == Asm_ARM32; 334 return Asm->getKind() == Asm_ARM32;
329 } 335 }
330 336
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 IValueT encodeBranchOffset(IOffsetT Offset, IValueT Inst); 468 IValueT encodeBranchOffset(IOffsetT Offset, IValueT Inst);
463 469
464 // Returns the offset encoded in the branch instruction Inst. 470 // Returns the offset encoded in the branch instruction Inst.
465 static IOffsetT decodeBranchOffset(IValueT Inst); 471 static IOffsetT decodeBranchOffset(IValueT Inst);
466 472
467 // Implements movw/movt, generating pattern ccccxxxxxxxsiiiiddddiiiiiiiiiiii 473 // Implements movw/movt, generating pattern ccccxxxxxxxsiiiiddddiiiiiiiiiiii
468 // where cccc=Cond, xxxxxxx<<21=Opcode, dddd=Rd, s=SetFlags, and 474 // where cccc=Cond, xxxxxxx<<21=Opcode, dddd=Rd, s=SetFlags, and
469 // iiiiiiiiiiiiiiii=Imm16. 475 // iiiiiiiiiiiiiiii=Imm16.
470 void emitMovwt(CondARM32::Cond Cond, bool IsMovw, const Operand *OpRd, 476 void emitMovwt(CondARM32::Cond Cond, bool IsMovw, const Operand *OpRd,
471 const Operand *OpSrc, const char *MovName); 477 const Operand *OpSrc, const char *MovName);
478
479 // Emit VFP instruction with 3 D registers.
480 void emitVFPddd(CondARM32::Cond Cond, IValueT Opcode, IValueT Dd, IValueT Dn,
481 IValueT Dm, const char *InstName);
482
483 // Emit VFP instruction with 3 S registers.
484 void emitVFPsss(CondARM32::Cond Cond, IValueT Opcode, IValueT Sd, IValueT Sn,
485 IValueT Sm, const char *InstName);
472 }; 486 };
473 487
474 } // end of namespace ARM32 488 } // end of namespace ARM32
475 } // end of namespace Ice 489 } // end of namespace Ice
476 490
477 #endif // SUBZERO_SRC_ICEASSEMBLERARM32_H 491 #endif // SUBZERO_SRC_ICEASSEMBLERARM32_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698