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

Side by Side Diff: src/IceAssemblerARM32.h

Issue 1634913005: Add VMLA (floating point) to the integrated ARM assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. 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 unified diff | Download patch
« no previous file with comments | « src/DartARM32/assembler_arm.cc ('k') | src/IceAssemblerARM32.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 } 383 }
384 384
385 void vmovd(const Operand *OpDn, const OperandARM32FlexFpImm *OpFpImm, 385 void vmovd(const Operand *OpDn, const OperandARM32FlexFpImm *OpFpImm,
386 CondARM32::Cond Cond); 386 CondARM32::Cond Cond);
387 387
388 void vmovs(const Operand *OpSn, const OperandARM32FlexFpImm *OpFpImm, 388 void vmovs(const Operand *OpSn, const OperandARM32FlexFpImm *OpFpImm,
389 CondARM32::Cond Cond); 389 CondARM32::Cond Cond);
390 390
391 void vmovsr(const Operand *OpSn, const Operand *OpRt, CondARM32::Cond Cond); 391 void vmovsr(const Operand *OpSn, const Operand *OpRt, CondARM32::Cond Cond);
392 392
393 void vmlad(const Operand *OpDd, const Operand *OpDn, const Operand *OpDm,
394 CondARM32::Cond Cond);
395
396 void vmlas(const Operand *OpSd, const Operand *OpSn, const Operand *OpSm,
397 CondARM32::Cond Cond);
398
393 // Uses APSR_nzcv as register 399 // Uses APSR_nzcv as register
394 void vmrsAPSR_nzcv(CondARM32::Cond Cond); 400 void vmrsAPSR_nzcv(CondARM32::Cond Cond);
395 401
396 void vmuld(const Operand *OpDd, const Operand *OpDn, const Operand *OpDm, 402 void vmuld(const Operand *OpDd, const Operand *OpDn, const Operand *OpDm,
397 CondARM32::Cond Cond); 403 CondARM32::Cond Cond);
398 404
399 void vmuls(const Operand *OpSd, const Operand *OpSn, const Operand *OpSm, 405 void vmuls(const Operand *OpSd, const Operand *OpSn, const Operand *OpSm,
400 CondARM32::Cond Cond); 406 CondARM32::Cond Cond);
401 407
402 void vpop(const Variable *OpBaseReg, SizeT NumConsecRegs, 408 void vpop(const Variable *OpBaseReg, SizeT NumConsecRegs,
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 // Returns the offset encoded in the branch instruction Inst. 584 // Returns the offset encoded in the branch instruction Inst.
579 static IOffsetT decodeBranchOffset(IValueT Inst); 585 static IOffsetT decodeBranchOffset(IValueT Inst);
580 586
581 // Implements movw/movt, generating pattern ccccxxxxxxxsiiiiddddiiiiiiiiiiii 587 // Implements movw/movt, generating pattern ccccxxxxxxxsiiiiddddiiiiiiiiiiii
582 // where cccc=Cond, xxxxxxx<<21=Opcode, dddd=Rd, s=SetFlags, and 588 // where cccc=Cond, xxxxxxx<<21=Opcode, dddd=Rd, s=SetFlags, and
583 // iiiiiiiiiiiiiiii=Imm16. 589 // iiiiiiiiiiiiiiii=Imm16.
584 void emitMovwt(CondARM32::Cond Cond, bool IsMovw, const Operand *OpRd, 590 void emitMovwt(CondARM32::Cond Cond, bool IsMovw, const Operand *OpRd,
585 const Operand *OpSrc, const char *MovName); 591 const Operand *OpSrc, const char *MovName);
586 592
587 // Emit VFP instruction with 3 D registers. 593 // Emit VFP instruction with 3 D registers.
594 void emitVFPddd(CondARM32::Cond Cond, IValueT Opcode, const Operand *OpDd,
595 const Operand *OpDn, const Operand *OpDm,
596 const char *InstName);
597
588 void emitVFPddd(CondARM32::Cond Cond, IValueT Opcode, IValueT Dd, IValueT Dn, 598 void emitVFPddd(CondARM32::Cond Cond, IValueT Opcode, IValueT Dd, IValueT Dn,
589 IValueT Dm); 599 IValueT Dm);
590 600
591 // Emit VFP instruction with 3 S registers. 601 // Emit VFP instruction with 3 S registers.
592 void emitVFPsss(CondARM32::Cond Cond, IValueT Opcode, IValueT Sd, IValueT Sn, 602 void emitVFPsss(CondARM32::Cond Cond, IValueT Opcode, IValueT Sd, IValueT Sn,
593 IValueT Sm); 603 IValueT Sm);
604
605 void emitVFPsss(CondARM32::Cond Cond, IValueT Opcode, const Operand *OpSd,
606 const Operand *OpSn, const Operand *OpSm,
607 const char *InstName);
594 }; 608 };
595 609
596 } // end of namespace ARM32 610 } // end of namespace ARM32
597 } // end of namespace Ice 611 } // end of namespace Ice
598 612
599 #endif // SUBZERO_SRC_ICEASSEMBLERARM32_H 613 #endif // SUBZERO_SRC_ICEASSEMBLERARM32_H
OLDNEW
« no previous file with comments | « src/DartARM32/assembler_arm.cc ('k') | src/IceAssemblerARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698