Path: blob/master/src/hotspot/cpu/ppc/c1_Defs_ppc.hpp
40930 views
/*1* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.2* Copyright (c) 2012, 2015 SAP SE. All rights reserved.3* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.4*5* This code is free software; you can redistribute it and/or modify it6* under the terms of the GNU General Public License version 2 only, as7* published by the Free Software Foundation.8*9* This code is distributed in the hope that it will be useful, but WITHOUT10* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License12* version 2 for more details (a copy is included in the LICENSE file that13* accompanied this code).14*15* You should have received a copy of the GNU General Public License version16* 2 along with this work; if not, write to the Free Software Foundation,17* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.18*19* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA20* or visit www.oracle.com if you need additional information or have any21* questions.22*23*/2425#ifndef CPU_PPC_C1_DEFS_PPC_HPP26#define CPU_PPC_C1_DEFS_PPC_HPP2728// Native word offsets from memory address.29enum {30#if defined(VM_LITTLE_ENDIAN)31pd_lo_word_offset_in_bytes = 0,32pd_hi_word_offset_in_bytes = BytesPerInt33#else34pd_lo_word_offset_in_bytes = BytesPerInt,35pd_hi_word_offset_in_bytes = 036#endif37};383940// Explicit rounding operations are not required to implement the strictFP mode.41enum {42pd_strict_fp_requires_explicit_rounding = false43};444546// registers47enum {48pd_nof_cpu_regs_frame_map = 32, // Number of registers used during code emission.49pd_nof_caller_save_cpu_regs_frame_map = 27, // Number of cpu registers killed by calls. (At least R3_ARG1 ... R10_ARG8, but using all like C2.)50pd_nof_cpu_regs_reg_alloc = 27, // Number of registers that are visible to register allocator.51pd_nof_cpu_regs_linearscan = 32, // Number of registers visible linear scan.52pd_first_callee_saved_reg = pd_nof_caller_save_cpu_regs_frame_map,53pd_last_callee_saved_reg = pd_nof_cpu_regs_reg_alloc - 1,54pd_first_cpu_reg = 0,55pd_last_cpu_reg = pd_nof_cpu_regs_reg_alloc - 1,5657pd_nof_fpu_regs_frame_map = 32, // Number of registers used during code emission.58pd_nof_caller_save_fpu_regs_frame_map = 32, // Number of fpu registers killed by calls.59pd_nof_fpu_regs_reg_alloc = 32, // Number of registers that are visible to register allocator.60pd_nof_fpu_regs_linearscan = 32, // Number of registers visible to linear scan.61pd_first_fpu_reg = pd_nof_cpu_regs_frame_map,62pd_last_fpu_reg = pd_nof_cpu_regs_frame_map + pd_nof_fpu_regs_reg_alloc - 1,6364pd_nof_xmm_regs_linearscan = 0,65pd_nof_caller_save_xmm_regs = 0,66pd_first_xmm_reg = -1,67pd_last_xmm_reg = -168};6970// For debug info: a float value in a register is saved in single precision by runtime stubs.71enum {72pd_float_saved_as_double = true73};7475#endif // CPU_PPC_C1_DEFS_PPC_HPP767778