| OLD | NEW |
| 1 //===- subzero/src/IceAssemblerX8632.cpp - Assembler for x86-32 ----------===// | 1 //===- subzero/src/IceAssemblerX8632.cpp - Assembler for x86-32 ----------===// |
| 2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 3 // for details. All rights reserved. Use of this source code is governed by a | 3 // for details. All rights reserved. Use of this source code is governed by a |
| 4 // BSD-style license that can be found in the LICENSE file. | 4 // BSD-style license that can be found in the LICENSE file. |
| 5 // | 5 // |
| 6 // Modified by the Subzero authors. | 6 // Modified by the Subzero authors. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 // | 9 // |
| 10 // The Subzero Code Generator | 10 // The Subzero Code Generator |
| 11 // | 11 // |
| 12 // This file is distributed under the University of Illinois Open Source | 12 // This file is distributed under the University of Illinois Open Source |
| 13 // License. See LICENSE.TXT for details. | 13 // License. See LICENSE.TXT for details. |
| 14 // | 14 // |
| 15 //===----------------------------------------------------------------------===// | 15 //===----------------------------------------------------------------------===// |
| 16 // | 16 /// |
| 17 // This file implements the Assembler class for x86-32. | 17 /// \file |
| 18 // | 18 /// This file implements the Assembler class for x86-32. |
| 19 /// |
| 19 //===----------------------------------------------------------------------===// | 20 //===----------------------------------------------------------------------===// |
| 20 | 21 |
| 21 #include "IceAssemblerX8632.h" | 22 #include "IceAssemblerX8632.h" |
| 22 | 23 |
| 23 #include "IceCfg.h" | 24 #include "IceCfg.h" |
| 24 #include "IceOperand.h" | 25 #include "IceOperand.h" |
| 25 | 26 |
| 26 namespace Ice { | 27 namespace Ice { |
| 27 namespace X8632 { | 28 namespace X8632 { |
| 28 | 29 |
| (...skipping 2520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2549 assert(shifter == RegX8632::Encoded_Reg_ecx); | 2550 assert(shifter == RegX8632::Encoded_Reg_ecx); |
| 2550 (void)shifter; | 2551 (void)shifter; |
| 2551 if (Ty == IceType_i16) | 2552 if (Ty == IceType_i16) |
| 2552 emitOperandSizeOverride(); | 2553 emitOperandSizeOverride(); |
| 2553 emitUint8(isByteSizedArithType(Ty) ? 0xD2 : 0xD3); | 2554 emitUint8(isByteSizedArithType(Ty) ? 0xD2 : 0xD3); |
| 2554 emitOperand(rm, operand); | 2555 emitOperand(rm, operand); |
| 2555 } | 2556 } |
| 2556 | 2557 |
| 2557 } // end of namespace X8632 | 2558 } // end of namespace X8632 |
| 2558 } // end of namespace Ice | 2559 } // end of namespace Ice |
| OLD | NEW |