src/hotspot/os_cpu/solaris_sparc/solaris_sparc.s
author darcy
Tue, 12 Nov 2019 10:45:23 -0800
changeset 59037 3d2575331a41
parent 47216 71c04702a3d5
permissions -rw-r--r--
8233940: Preview API tests for String methods should use ${jdk.version} as -source arg Reviewed-by: jlaskey, jlahoda
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: 18740
diff changeset
     2
!! Copyright (c) 2005, 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: 670
diff changeset
    19
!! Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 670
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: 670
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
    !! Possibilities:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    25
    !! -- membar
489c9b5090e2 Initial load
duke
parents:
diff changeset
    26
    !! -- CAS (SP + BIAS, G0, G0)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    27
    !! -- wr %g0, %asi
489c9b5090e2 Initial load
duke
parents:
diff changeset
    28
489c9b5090e2 Initial load
duke
parents:
diff changeset
    29
    .global SpinPause
489c9b5090e2 Initial load
duke
parents:
diff changeset
    30
    .align  32
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
SpinPause:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
    retl
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
    mov %g0, %o0
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
 
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
    .globl _Copy_conjoint_jlongs_atomic
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
    .align 32
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
    .global   _Copy_conjoint_jlongs_atomic
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
 _Copy_conjoint_jlongs_atomic:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
         cmp     %o0, %o1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
         bleu    4f
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
         sll     %o2, 3, %o4
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
         ba      2f
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
    1:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
         subcc   %o4, 8, %o4
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
         std     %o2, [%o1]
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
         add     %o0, 8, %o0
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
         add     %o1, 8, %o1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
    2:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
         bge,a   1b
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
         ldd     [%o0], %o2
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
         ba      5f
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
         nop
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
    3:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
         std     %o2, [%o1+%o4]
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
    4:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
         subcc   %o4, 8, %o4
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
         bge,a   3b
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
         ldd     [%o0+%o4], %o2
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
    5:      
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
         retl
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
         nop
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
 
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
 
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
  
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
    .globl _raw_thread_id
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
    .align 32
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
 _raw_thread_id:
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
    70
    .register %g7, #scratch
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
        retl
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
        mov     %g7, %o0
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
 
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
    .globl _flush_reg_windows
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
    .align 32
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
 _flush_reg_windows:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
        ta 0x03
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
        retl
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
        mov     %fp, %o0
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
 
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82