hotspot/src/share/vm/asm/register.hpp
author kvn
Tue, 02 Sep 2014 12:48:45 -0700
changeset 26434 09ad55e5f486
parent 24424 2658d7834c6e
child 29180 50369728b00e
permissions -rw-r--r--
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method Summary: Add new C2 intrinsic for BigInteger::multiplyToLen() on x86 in 64-bit VM. Reviewed-by: roland
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
24424
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
     2
 * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
 *
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1
diff changeset
    21
 * questions.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    25
#ifndef SHARE_VM_ASM_REGISTER_HPP
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    26
#define SHARE_VM_ASM_REGISTER_HPP
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    27
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    28
#include "utilities/top.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    29
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    30
// Use AbstractRegister as shortcut
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
class AbstractRegisterImpl;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
typedef AbstractRegisterImpl* AbstractRegister;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
// The super class for platform specific registers. Instead of using value objects,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
// registers are implemented as pointers. Subclassing is used so all registers can
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
// use the debugging suport below. No virtual functions are used for efficiency.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
// They are canonicalized; i.e., registers are equal if their pointers are equal,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
// and vice versa. A concrete implementation may just map the register onto 'this'.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
class AbstractRegisterImpl {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
 protected:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
  int value() const                              { return (int)(intx)this; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
// Macros for use in defining Register instances.  We'd like to be
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
// able to simply define const instances of the RegisterImpl* for each
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
// of the registers needed on a system in a header file.  However many
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
// compilers don't handle this very well and end up producing a
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
// private definition in every file which includes the header file.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
// Along with the static constructors necessary for initialization it
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
// can consume a significant amount of space in the result library.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
// The following macros allow us to declare the instance in a .hpp and
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
// produce an enumeration value which has the same number.  Then in a
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
// .cpp the the register instance can be defined using the enumeration
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
// value.  This avoids the use of static constructors and multiple
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
// definitions per .cpp.  In addition #defines for the register can be
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
// produced so that the constant registers can be inlined.  These
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
// macros should not be used inside other macros, because you may get
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
// multiple evaluations of the macros which can give bad results.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
// Here are some example uses and expansions.  Note that the macro
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
// invocation is terminated with a ;.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
// CONSTANT_REGISTER_DECLARATION(Register, G0, 0);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
// extern const Register G0 ;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
// enum { G0_RegisterEnumValue = 0 } ;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
// REGISTER_DECLARATION(Register, Gmethod, G5);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
// extern const Register Gmethod ;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
// enum { Gmethod_RegisterEnumValue = G5_RegisterEnumValue } ;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
// REGISTER_DEFINITION(Register, G0);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
// const Register G0 = ( ( Register ) G0_RegisterEnumValue ) ;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
#define AS_REGISTER(type,name)         ((type)name##_##type##EnumValue)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
#define CONSTANT_REGISTER_DECLARATION(type, name, value) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
extern const type name;                                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
enum { name##_##type##EnumValue = (value) }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
#define REGISTER_DECLARATION(type, name, value) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
extern const type name;                         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
enum { name##_##type##EnumValue = value##_##type##EnumValue }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
#define REGISTER_DEFINITION(type, name) \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
const type name = ((type)name##_##type##EnumValue)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
14631
526804361522 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 13963
diff changeset
    96
#ifdef TARGET_ARCH_x86
526804361522 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 13963
diff changeset
    97
# include "register_x86.hpp"
526804361522 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 13963
diff changeset
    98
#endif
526804361522 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 13963
diff changeset
    99
#ifdef TARGET_ARCH_sparc
526804361522 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 13963
diff changeset
   100
# include "register_sparc.hpp"
526804361522 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 13963
diff changeset
   101
#endif
526804361522 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 13963
diff changeset
   102
#ifdef TARGET_ARCH_zero
526804361522 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 13963
diff changeset
   103
# include "register_zero.hpp"
526804361522 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 13963
diff changeset
   104
#endif
526804361522 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 13963
diff changeset
   105
#ifdef TARGET_ARCH_arm
526804361522 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 13963
diff changeset
   106
# include "register_arm.hpp"
526804361522 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 13963
diff changeset
   107
#endif
526804361522 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 13963
diff changeset
   108
#ifdef TARGET_ARCH_ppc
526804361522 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 13963
diff changeset
   109
# include "register_ppc.hpp"
526804361522 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 13963
diff changeset
   110
#endif
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
// Debugging support
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
inline void assert_different_registers(
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
  AbstractRegister a,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
  AbstractRegister b
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
  assert(
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
    a != b,
24424
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   121
    err_msg_res("registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT "",
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   122
                p2i(a), p2i(b))
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
  );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
inline void assert_different_registers(
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
  AbstractRegister a,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
  AbstractRegister b,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
  AbstractRegister c
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
  assert(
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
    a != b && a != c
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
           && b != c,
24424
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   135
    err_msg_res("registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   136
                ", c=" INTPTR_FORMAT "",
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   137
                p2i(a), p2i(b), p2i(c))
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
  );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
inline void assert_different_registers(
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
  AbstractRegister a,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
  AbstractRegister b,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
  AbstractRegister c,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
  AbstractRegister d
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
  assert(
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
    a != b && a != c && a != d
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
           && b != c && b != d
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
                     && c != d,
24424
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   152
    err_msg_res("registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   153
                ", c=" INTPTR_FORMAT ", d=" INTPTR_FORMAT "",
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   154
                p2i(a), p2i(b), p2i(c), p2i(d))
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
  );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
inline void assert_different_registers(
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
  AbstractRegister a,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
  AbstractRegister b,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
  AbstractRegister c,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   163
  AbstractRegister d,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
  AbstractRegister e
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
  assert(
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
    a != b && a != c && a != d && a != e
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
           && b != c && b != d && b != e
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
                     && c != d && c != e
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
                               && d != e,
24424
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   171
    err_msg_res("registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   172
                ", c=" INTPTR_FORMAT ", d=" INTPTR_FORMAT ", e=" INTPTR_FORMAT "",
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   173
                p2i(a), p2i(b), p2i(c), p2i(d), p2i(e))
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
  );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   175
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
inline void assert_different_registers(
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
  AbstractRegister a,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
  AbstractRegister b,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
  AbstractRegister c,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
  AbstractRegister d,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
  AbstractRegister e,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   184
  AbstractRegister f
489c9b5090e2 Initial load
duke
parents:
diff changeset
   185
) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   186
  assert(
489c9b5090e2 Initial load
duke
parents:
diff changeset
   187
    a != b && a != c && a != d && a != e && a != f
489c9b5090e2 Initial load
duke
parents:
diff changeset
   188
           && b != c && b != d && b != e && b != f
489c9b5090e2 Initial load
duke
parents:
diff changeset
   189
                     && c != d && c != e && c != f
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
                               && d != e && d != f
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
                                         && e != f,
24424
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   192
    err_msg_res("registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   193
                ", c=" INTPTR_FORMAT ", d=" INTPTR_FORMAT ", e=" INTPTR_FORMAT
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   194
                ", f=" INTPTR_FORMAT "",
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   195
                p2i(a), p2i(b), p2i(c), p2i(d), p2i(e), p2i(f))
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
  );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
489c9b5090e2 Initial load
duke
parents:
diff changeset
   199
489c9b5090e2 Initial load
duke
parents:
diff changeset
   200
inline void assert_different_registers(
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
  AbstractRegister a,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
  AbstractRegister b,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
  AbstractRegister c,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   204
  AbstractRegister d,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   205
  AbstractRegister e,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   206
  AbstractRegister f,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   207
  AbstractRegister g
489c9b5090e2 Initial load
duke
parents:
diff changeset
   208
) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
  assert(
489c9b5090e2 Initial load
duke
parents:
diff changeset
   210
    a != b && a != c && a != d && a != e && a != f && a != g
489c9b5090e2 Initial load
duke
parents:
diff changeset
   211
           && b != c && b != d && b != e && b != f && b != g
489c9b5090e2 Initial load
duke
parents:
diff changeset
   212
                     && c != d && c != e && c != f && c != g
489c9b5090e2 Initial load
duke
parents:
diff changeset
   213
                               && d != e && d != f && d != g
489c9b5090e2 Initial load
duke
parents:
diff changeset
   214
                                         && e != f && e != g
489c9b5090e2 Initial load
duke
parents:
diff changeset
   215
                                                   && f != g,
24424
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   216
    err_msg_res("registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   217
                ", c=" INTPTR_FORMAT ", d=" INTPTR_FORMAT ", e=" INTPTR_FORMAT
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   218
                ", f=" INTPTR_FORMAT ", g=" INTPTR_FORMAT "",
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   219
                p2i(a), p2i(b), p2i(c), p2i(d), p2i(e), p2i(f), p2i(g))
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   220
  );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   221
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   222
489c9b5090e2 Initial load
duke
parents:
diff changeset
   223
489c9b5090e2 Initial load
duke
parents:
diff changeset
   224
inline void assert_different_registers(
489c9b5090e2 Initial load
duke
parents:
diff changeset
   225
  AbstractRegister a,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   226
  AbstractRegister b,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   227
  AbstractRegister c,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   228
  AbstractRegister d,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   229
  AbstractRegister e,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   230
  AbstractRegister f,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   231
  AbstractRegister g,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   232
  AbstractRegister h
489c9b5090e2 Initial load
duke
parents:
diff changeset
   233
) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   234
  assert(
489c9b5090e2 Initial load
duke
parents:
diff changeset
   235
    a != b && a != c && a != d && a != e && a != f && a != g && a != h
489c9b5090e2 Initial load
duke
parents:
diff changeset
   236
           && b != c && b != d && b != e && b != f && b != g && b != h
489c9b5090e2 Initial load
duke
parents:
diff changeset
   237
                     && c != d && c != e && c != f && c != g && c != h
489c9b5090e2 Initial load
duke
parents:
diff changeset
   238
                               && d != e && d != f && d != g && d != h
489c9b5090e2 Initial load
duke
parents:
diff changeset
   239
                                         && e != f && e != g && e != h
489c9b5090e2 Initial load
duke
parents:
diff changeset
   240
                                                   && f != g && f != h
489c9b5090e2 Initial load
duke
parents:
diff changeset
   241
                                                             && g != h,
24424
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   242
    err_msg_res("registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   243
                ", c=" INTPTR_FORMAT ", d=" INTPTR_FORMAT ", e=" INTPTR_FORMAT
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   244
                ", f=" INTPTR_FORMAT ", g=" INTPTR_FORMAT ", h=" INTPTR_FORMAT "",
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   245
                p2i(a), p2i(b), p2i(c), p2i(d), p2i(e), p2i(f), p2i(g), p2i(h))
13391
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 7397
diff changeset
   246
  );
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 7397
diff changeset
   247
}
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 7397
diff changeset
   248
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 7397
diff changeset
   249
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 7397
diff changeset
   250
inline void assert_different_registers(
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 7397
diff changeset
   251
  AbstractRegister a,
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 7397
diff changeset
   252
  AbstractRegister b,
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 7397
diff changeset
   253
  AbstractRegister c,
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 7397
diff changeset
   254
  AbstractRegister d,
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 7397
diff changeset
   255
  AbstractRegister e,
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 7397
diff changeset
   256
  AbstractRegister f,
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 7397
diff changeset
   257
  AbstractRegister g,
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 7397
diff changeset
   258
  AbstractRegister h,
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 7397
diff changeset
   259
  AbstractRegister i
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 7397
diff changeset
   260
) {
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 7397
diff changeset
   261
  assert(
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 7397
diff changeset
   262
    a != b && a != c && a != d && a != e && a != f && a != g && a != h && a != i
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 7397
diff changeset
   263
           && b != c && b != d && b != e && b != f && b != g && b != h && b != i
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 7397
diff changeset
   264
                     && c != d && c != e && c != f && c != g && c != h && c != i
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 7397
diff changeset
   265
                               && d != e && d != f && d != g && d != h && d != i
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 7397
diff changeset
   266
                                         && e != f && e != g && e != h && e != i
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 7397
diff changeset
   267
                                                   && f != g && f != h && f != i
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 7397
diff changeset
   268
                                                             && g != h && g != i
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 7397
diff changeset
   269
                                                                       && h != i,
24424
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   270
    err_msg_res("registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   271
                ", c=" INTPTR_FORMAT ", d=" INTPTR_FORMAT ", e=" INTPTR_FORMAT
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   272
                ", f=" INTPTR_FORMAT ", g=" INTPTR_FORMAT ", h=" INTPTR_FORMAT
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   273
                ", i=" INTPTR_FORMAT "",
2658d7834c6e 8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents: 14631
diff changeset
   274
                p2i(a), p2i(b), p2i(c), p2i(d), p2i(e), p2i(f), p2i(g), p2i(h), p2i(i))
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   275
  );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   276
}
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   277
26434
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   278
inline void assert_different_registers(
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   279
  AbstractRegister a,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   280
  AbstractRegister b,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   281
  AbstractRegister c,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   282
  AbstractRegister d,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   283
  AbstractRegister e,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   284
  AbstractRegister f,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   285
  AbstractRegister g,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   286
  AbstractRegister h,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   287
  AbstractRegister i,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   288
  AbstractRegister j
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   289
) {
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   290
  assert(
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   291
    a != b && a != c && a != d && a != e && a != f && a != g && a != h && a != i && a != j
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   292
           && b != c && b != d && b != e && b != f && b != g && b != h && b != i && b != j
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   293
                     && c != d && c != e && c != f && c != g && c != h && c != i && c != j
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   294
                               && d != e && d != f && d != g && d != h && d != i && d != j
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   295
                                         && e != f && e != g && e != h && e != i && e != j
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   296
                                                   && f != g && f != h && f != i && f != j
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   297
                                                             && g != h && g != i && g != j
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   298
                                                                       && h != i && h != j
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   299
                                                                                 && i != j,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   300
    err_msg_res("registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   301
                ", c=" INTPTR_FORMAT ", d=" INTPTR_FORMAT ", e=" INTPTR_FORMAT
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   302
                ", f=" INTPTR_FORMAT ", g=" INTPTR_FORMAT ", h=" INTPTR_FORMAT
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   303
                ", i=" INTPTR_FORMAT ", j=" INTPTR_FORMAT "",
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   304
                p2i(a), p2i(b), p2i(c), p2i(d), p2i(e), p2i(f), p2i(g), p2i(h), p2i(i), p2i(j))
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   305
  );
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   306
}
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   307
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   308
inline void assert_different_registers(
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   309
  AbstractRegister a,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   310
  AbstractRegister b,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   311
  AbstractRegister c,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   312
  AbstractRegister d,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   313
  AbstractRegister e,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   314
  AbstractRegister f,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   315
  AbstractRegister g,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   316
  AbstractRegister h,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   317
  AbstractRegister i,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   318
  AbstractRegister j,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   319
  AbstractRegister k
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   320
) {
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   321
  assert(
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   322
    a != b && a != c && a != d && a != e && a != f && a != g && a != h && a != i && a != j && a !=k
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   323
           && b != c && b != d && b != e && b != f && b != g && b != h && b != i && b != j && b !=k
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   324
                     && c != d && c != e && c != f && c != g && c != h && c != i && c != j && c !=k
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   325
                               && d != e && d != f && d != g && d != h && d != i && d != j && d !=k
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   326
                                         && e != f && e != g && e != h && e != i && e != j && e !=k
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   327
                                                   && f != g && f != h && f != i && f != j && f !=k
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   328
                                                             && g != h && g != i && g != j && g !=k
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   329
                                                                       && h != i && h != j && h !=k
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   330
                                                                                 && i != j && i !=k
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   331
                                                                                           && j !=k,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   332
    err_msg_res("registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   333
                ", c=" INTPTR_FORMAT ", d=" INTPTR_FORMAT ", e=" INTPTR_FORMAT
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   334
                ", f=" INTPTR_FORMAT ", g=" INTPTR_FORMAT ", h=" INTPTR_FORMAT
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   335
                ", i=" INTPTR_FORMAT ", j=" INTPTR_FORMAT ", k=" INTPTR_FORMAT "",
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   336
                p2i(a), p2i(b), p2i(c), p2i(d), p2i(e), p2i(f), p2i(g), p2i(h), p2i(i), p2i(j), p2i(k))
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   337
  );
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   338
}
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   339
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   340
inline void assert_different_registers(
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   341
  AbstractRegister a,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   342
  AbstractRegister b,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   343
  AbstractRegister c,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   344
  AbstractRegister d,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   345
  AbstractRegister e,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   346
  AbstractRegister f,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   347
  AbstractRegister g,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   348
  AbstractRegister h,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   349
  AbstractRegister i,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   350
  AbstractRegister j,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   351
  AbstractRegister k,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   352
  AbstractRegister l
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   353
) {
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   354
  assert(
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   355
    a != b && a != c && a != d && a != e && a != f && a != g && a != h && a != i && a != j && a !=k && a !=l
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   356
           && b != c && b != d && b != e && b != f && b != g && b != h && b != i && b != j && b !=k && b !=l
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   357
                     && c != d && c != e && c != f && c != g && c != h && c != i && c != j && c !=k && c !=l
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   358
                               && d != e && d != f && d != g && d != h && d != i && d != j && d !=k && d !=l
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   359
                                         && e != f && e != g && e != h && e != i && e != j && e !=k && e !=l
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   360
                                                   && f != g && f != h && f != i && f != j && f !=k && f !=l
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   361
                                                             && g != h && g != i && g != j && g !=k && g !=l
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   362
                                                                       && h != i && h != j && h !=k && h !=l
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   363
                                                                                 && i != j && i !=k && i !=l
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   364
                                                                                           && j !=k && j !=l
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   365
                                                                                                    && k !=l,
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   366
    err_msg_res("registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   367
                ", c=" INTPTR_FORMAT ", d=" INTPTR_FORMAT ", e=" INTPTR_FORMAT
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   368
                ", f=" INTPTR_FORMAT ", g=" INTPTR_FORMAT ", h=" INTPTR_FORMAT
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   369
                ", i=" INTPTR_FORMAT ", j=" INTPTR_FORMAT ", k=" INTPTR_FORMAT
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   370
                ", l=" INTPTR_FORMAT "",
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   371
                p2i(a), p2i(b), p2i(c), p2i(d), p2i(e), p2i(f), p2i(g), p2i(h), p2i(i), p2i(j), p2i(k), p2i(l))
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   372
  );
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   373
}
09ad55e5f486 8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents: 24424
diff changeset
   374
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   375
#endif // SHARE_VM_ASM_REGISTER_HPP