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

Side by Side Diff: src/IceAssemblerX86Base.h

Issue 1365433004: Use three-address form of imul (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Reinsert match for square operations, lost by merge. Created 5 years, 2 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 | « no previous file | src/IceAssemblerX86BaseImpl.h » ('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/IceAssemblerX86Base.h - base x86 assembler -*- C++ -*---===// 1 //===- subzero/src/IceAssemblerX86Base.h - base x86 assembler -*- 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 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 744
745 void imul(Type Ty, typename Traits::GPRRegister dst, 745 void imul(Type Ty, typename Traits::GPRRegister dst,
746 typename Traits::GPRRegister src); 746 typename Traits::GPRRegister src);
747 void imul(Type Ty, typename Traits::GPRRegister reg, const Immediate &imm); 747 void imul(Type Ty, typename Traits::GPRRegister reg, const Immediate &imm);
748 void imul(Type Ty, typename Traits::GPRRegister reg, 748 void imul(Type Ty, typename Traits::GPRRegister reg,
749 const typename Traits::Address &address); 749 const typename Traits::Address &address);
750 750
751 void imul(Type Ty, typename Traits::GPRRegister reg); 751 void imul(Type Ty, typename Traits::GPRRegister reg);
752 void imul(Type Ty, const typename Traits::Address &address); 752 void imul(Type Ty, const typename Traits::Address &address);
753 753
754 void imul(Type Ty, typename Traits::GPRRegister dst,
755 typename Traits::GPRRegister src, const Immediate &imm);
756 void imul(Type Ty, typename Traits::GPRRegister dst,
757 const typename Traits::Address &address, const Immediate &imm);
758
754 void mul(Type Ty, typename Traits::GPRRegister reg); 759 void mul(Type Ty, typename Traits::GPRRegister reg);
755 void mul(Type Ty, const typename Traits::Address &address); 760 void mul(Type Ty, const typename Traits::Address &address);
756 761
757 template <class T = Traits, 762 template <class T = Traits,
758 typename = typename std::enable_if<!T::Is64Bit>::type> 763 typename = typename std::enable_if<!T::Is64Bit>::type>
759 void incl(typename Traits::GPRRegister reg); 764 void incl(typename Traits::GPRRegister reg);
760 void incl(const typename Traits::Address &address); 765 void incl(const typename Traits::Address &address);
761 766
762 template <class T = Traits, 767 template <class T = Traits,
763 typename = typename std::enable_if<!T::Is64Bit>::type> 768 typename = typename std::enable_if<!T::Is64Bit>::type>
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
1066 emitUint8(0x66); 1071 emitUint8(0x66);
1067 } 1072 }
1068 1073
1069 } // end of namespace X86Internal 1074 } // end of namespace X86Internal
1070 1075
1071 } // end of namespace Ice 1076 } // end of namespace Ice
1072 1077
1073 #include "IceAssemblerX86BaseImpl.h" 1078 #include "IceAssemblerX86BaseImpl.h"
1074 1079
1075 #endif // SUBZERO_SRC_ICEASSEMBLERX86BASE_H 1080 #endif // SUBZERO_SRC_ICEASSEMBLERX86BASE_H
OLDNEW
« no previous file with comments | « no previous file | src/IceAssemblerX86BaseImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698