| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |