hotspot/src/cpu/x86/vm/register_definitions_x86.cpp
author kvn
Thu, 07 Jan 2016 14:29:05 -0800
changeset 35537 bed5e2dc57a1
parent 30624 2e1803c8a26d
child 40071 53e12df44b7b
child 40010 e32d5e545789
permissions -rw-r--r--
8146581: Minor corrections to the patch submitted for earlier bug id - 8143925 Reviewed-by: kvn Contributed-by: kishor.kharbas@intel.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
22234
da823d78ad65 8029233: Update copyright year to match last edit in jdk8 hotspot repository for 2013
mikael
parents: 21095
diff changeset
     2
 * Copyright (c) 2002, 2013, 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: 1546
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1546
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: 1546
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: 5702
diff changeset
    25
#include "precompiled.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5702
diff changeset
    26
#include "asm/assembler.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5702
diff changeset
    27
#include "asm/register.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5702
diff changeset
    28
#include "register_x86.hpp"
21095
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents: 11427
diff changeset
    29
#ifdef TARGET_ARCH_x86
1a04f7b3946e 8026251: New type profiling points: parameters to methods
roland
parents: 11427
diff changeset
    30
# include "interp_masm_x86.hpp"
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5702
diff changeset
    31
#endif
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
REGISTER_DEFINITION(Register, noreg);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
REGISTER_DEFINITION(Register, rax);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
REGISTER_DEFINITION(Register, rcx);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
REGISTER_DEFINITION(Register, rdx);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
REGISTER_DEFINITION(Register, rbx);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
REGISTER_DEFINITION(Register, rsp);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
REGISTER_DEFINITION(Register, rbp);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
REGISTER_DEFINITION(Register, rsi);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
REGISTER_DEFINITION(Register, rdi);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
#ifdef AMD64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
REGISTER_DEFINITION(Register, r8);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
REGISTER_DEFINITION(Register, r9);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
REGISTER_DEFINITION(Register, r10);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
REGISTER_DEFINITION(Register, r11);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
REGISTER_DEFINITION(Register, r12);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
REGISTER_DEFINITION(Register, r13);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
REGISTER_DEFINITION(Register, r14);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
REGISTER_DEFINITION(Register, r15);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
#endif // AMD64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
11427
bf248009cbbe 7116452: Add support for AVX instructions
kvn
parents: 7397
diff changeset
    53
REGISTER_DEFINITION(XMMRegister, xnoreg);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
REGISTER_DEFINITION(XMMRegister, xmm0 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
REGISTER_DEFINITION(XMMRegister, xmm1 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
REGISTER_DEFINITION(XMMRegister, xmm2 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
REGISTER_DEFINITION(XMMRegister, xmm3 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
REGISTER_DEFINITION(XMMRegister, xmm4 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
REGISTER_DEFINITION(XMMRegister, xmm5 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
REGISTER_DEFINITION(XMMRegister, xmm6 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
REGISTER_DEFINITION(XMMRegister, xmm7 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
#ifdef AMD64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
REGISTER_DEFINITION(XMMRegister, xmm8);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
REGISTER_DEFINITION(XMMRegister, xmm9);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
REGISTER_DEFINITION(XMMRegister, xmm10);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
REGISTER_DEFINITION(XMMRegister, xmm11);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
REGISTER_DEFINITION(XMMRegister, xmm12);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
REGISTER_DEFINITION(XMMRegister, xmm13);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
REGISTER_DEFINITION(XMMRegister, xmm14);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
REGISTER_DEFINITION(XMMRegister, xmm15);
30624
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 22234
diff changeset
    71
REGISTER_DEFINITION(XMMRegister, xmm16);
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 22234
diff changeset
    72
REGISTER_DEFINITION(XMMRegister, xmm17);
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 22234
diff changeset
    73
REGISTER_DEFINITION(XMMRegister, xmm18);
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 22234
diff changeset
    74
REGISTER_DEFINITION(XMMRegister, xmm19);
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 22234
diff changeset
    75
REGISTER_DEFINITION(XMMRegister, xmm20);
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 22234
diff changeset
    76
REGISTER_DEFINITION(XMMRegister, xmm21);
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 22234
diff changeset
    77
REGISTER_DEFINITION(XMMRegister, xmm22);
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 22234
diff changeset
    78
REGISTER_DEFINITION(XMMRegister, xmm23);
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 22234
diff changeset
    79
REGISTER_DEFINITION(XMMRegister, xmm24);
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 22234
diff changeset
    80
REGISTER_DEFINITION(XMMRegister, xmm25);
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 22234
diff changeset
    81
REGISTER_DEFINITION(XMMRegister, xmm26);
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 22234
diff changeset
    82
REGISTER_DEFINITION(XMMRegister, xmm27);
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 22234
diff changeset
    83
REGISTER_DEFINITION(XMMRegister, xmm28);
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 22234
diff changeset
    84
REGISTER_DEFINITION(XMMRegister, xmm29);
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 22234
diff changeset
    85
REGISTER_DEFINITION(XMMRegister, xmm30);
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 22234
diff changeset
    86
REGISTER_DEFINITION(XMMRegister, xmm31);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
REGISTER_DEFINITION(Register, c_rarg0);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
REGISTER_DEFINITION(Register, c_rarg1);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
REGISTER_DEFINITION(Register, c_rarg2);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
REGISTER_DEFINITION(Register, c_rarg3);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
REGISTER_DEFINITION(XMMRegister, c_farg0);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
REGISTER_DEFINITION(XMMRegister, c_farg1);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
REGISTER_DEFINITION(XMMRegister, c_farg2);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
REGISTER_DEFINITION(XMMRegister, c_farg3);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
// Non windows OS's have a few more argument registers
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
#ifndef _WIN64
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
REGISTER_DEFINITION(Register, c_rarg4);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
REGISTER_DEFINITION(Register, c_rarg5);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
REGISTER_DEFINITION(XMMRegister, c_farg4);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
REGISTER_DEFINITION(XMMRegister, c_farg5);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
REGISTER_DEFINITION(XMMRegister, c_farg6);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
REGISTER_DEFINITION(XMMRegister, c_farg7);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
#endif /* _WIN64 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
REGISTER_DEFINITION(Register, j_rarg0);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
REGISTER_DEFINITION(Register, j_rarg1);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
REGISTER_DEFINITION(Register, j_rarg2);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
REGISTER_DEFINITION(Register, j_rarg3);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
REGISTER_DEFINITION(Register, j_rarg4);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
REGISTER_DEFINITION(Register, j_rarg5);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
REGISTER_DEFINITION(XMMRegister, j_farg0);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
REGISTER_DEFINITION(XMMRegister, j_farg1);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
REGISTER_DEFINITION(XMMRegister, j_farg2);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
REGISTER_DEFINITION(XMMRegister, j_farg3);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
REGISTER_DEFINITION(XMMRegister, j_farg4);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
REGISTER_DEFINITION(XMMRegister, j_farg5);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
REGISTER_DEFINITION(XMMRegister, j_farg6);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
REGISTER_DEFINITION(XMMRegister, j_farg7);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
REGISTER_DEFINITION(Register, rscratch1);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
REGISTER_DEFINITION(Register, rscratch2);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   128
REGISTER_DEFINITION(Register, r12_heapbase);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
REGISTER_DEFINITION(Register, r15_thread);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
#endif // AMD64
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
11427
bf248009cbbe 7116452: Add support for AVX instructions
kvn
parents: 7397
diff changeset
   132
REGISTER_DEFINITION(MMXRegister, mnoreg );
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
REGISTER_DEFINITION(MMXRegister, mmx0 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
REGISTER_DEFINITION(MMXRegister, mmx1 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
REGISTER_DEFINITION(MMXRegister, mmx2 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
REGISTER_DEFINITION(MMXRegister, mmx3 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
REGISTER_DEFINITION(MMXRegister, mmx4 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
REGISTER_DEFINITION(MMXRegister, mmx5 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
REGISTER_DEFINITION(MMXRegister, mmx6 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
REGISTER_DEFINITION(MMXRegister, mmx7 );
5687
b862d1f189bd 6930772: JSR 292 needs to support SPARC C1
twisti
parents: 1546
diff changeset
   141
30624
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 22234
diff changeset
   142
REGISTER_DEFINITION(KRegister, knoreg);
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 22234
diff changeset
   143
REGISTER_DEFINITION(KRegister, k0);
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 22234
diff changeset
   144
REGISTER_DEFINITION(KRegister, k1);
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 22234
diff changeset
   145
REGISTER_DEFINITION(KRegister, k2);
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 22234
diff changeset
   146
REGISTER_DEFINITION(KRegister, k3);
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 22234
diff changeset
   147
REGISTER_DEFINITION(KRegister, k4);
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 22234
diff changeset
   148
REGISTER_DEFINITION(KRegister, k5);
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 22234
diff changeset
   149
REGISTER_DEFINITION(KRegister, k6);
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 22234
diff changeset
   150
REGISTER_DEFINITION(KRegister, k7);
2e1803c8a26d 8076276: Add support for AVX512
kvn
parents: 22234
diff changeset
   151
5687
b862d1f189bd 6930772: JSR 292 needs to support SPARC C1
twisti
parents: 1546
diff changeset
   152
// JSR 292
b862d1f189bd 6930772: JSR 292 needs to support SPARC C1
twisti
parents: 1546
diff changeset
   153
REGISTER_DEFINITION(Register, rbp_mh_SP_save);