| 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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 const Operand *OpSrc1, const char *CmpName); | 386 const Operand *OpSrc1, const char *CmpName); |
| 387 | 387 |
| 388 void emitBranch(Label *L, CondARM32::Cond, bool Link); | 388 void emitBranch(Label *L, CondARM32::Cond, bool Link); |
| 389 | 389 |
| 390 // Encodes the given Offset into the branch instruction Inst. | 390 // Encodes the given Offset into the branch instruction Inst. |
| 391 IValueT encodeBranchOffset(IOffsetT Offset, IValueT Inst); | 391 IValueT encodeBranchOffset(IOffsetT Offset, IValueT Inst); |
| 392 | 392 |
| 393 // Returns the offset encoded in the branch instruction Inst. | 393 // Returns the offset encoded in the branch instruction Inst. |
| 394 static IOffsetT decodeBranchOffset(IValueT Inst); | 394 static IOffsetT decodeBranchOffset(IValueT Inst); |
| 395 | 395 |
| 396 // Implements movw, generating pattern ccccxxxxxxxsiiiiddddiiiiiiiiiiii where | 396 // Implements movw/movt, generating pattern ccccxxxxxxxsiiiiddddiiiiiiiiiiii |
| 397 // cccc=Cond, xxxxxxx<<21=Opcode, dddd=Rd, s=SetFlags, and | 397 // where cccc=Cond, xxxxxxx<<21=Opcode, dddd=Rd, s=SetFlags, and |
| 398 // iiiiiiiiiiiiiiii=Imm16. | 398 // iiiiiiiiiiiiiiii=Imm16. |
| 399 void emitMovw(IValueT Opcode, IValueT Rd, IValueT Imm16, bool SetFlags, | 399 void emitMovwt(CondARM32::Cond Cond, bool IsMovw, const Operand *OpRd, |
| 400 CondARM32::Cond Cond); | 400 const Operand *OpSrc, const char *MovName); |
| 401 }; | 401 }; |
| 402 | 402 |
| 403 } // end of namespace ARM32 | 403 } // end of namespace ARM32 |
| 404 } // end of namespace Ice | 404 } // end of namespace Ice |
| 405 | 405 |
| 406 #endif // SUBZERO_SRC_ICEASSEMBLERARM32_H | 406 #endif // SUBZERO_SRC_ICEASSEMBLERARM32_H |
| OLD | NEW |