Path: blob/master/src/hotspot/cpu/s390/c1_Defs_s390.hpp
40930 views
/*1* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.2* Copyright (c) 2016 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_S390_C1_DEFS_S390_HPP26#define CPU_S390_C1_DEFS_S390_HPP2728// Native word offsets from memory address (big endian).29enum {30pd_lo_word_offset_in_bytes = BytesPerInt,31pd_hi_word_offset_in_bytes = 032};3334// Explicit rounding operations are not required to implement the strictFP mode.35enum {36pd_strict_fp_requires_explicit_rounding = false37};3839// registers40enum {41pd_nof_cpu_regs_frame_map = 16, // Number of registers used during code emission.42// Treat all registers as caller save (values of callee save are hard to find if caller is in runtime).43// unallocated: Z_thread, Z_fp, Z_SP, Z_R0_scratch, Z_R1_scratch, Z_R1444pd_nof_cpu_regs_unallocated = 6,45pd_nof_caller_save_cpu_regs_frame_map = pd_nof_cpu_regs_frame_map - pd_nof_cpu_regs_unallocated, // Number of cpu registers killed by calls.46pd_nof_cpu_regs_reg_alloc = pd_nof_caller_save_cpu_regs_frame_map, // Number of registers that are visible to register allocator.47pd_nof_cpu_regs_linearscan = pd_nof_cpu_regs_frame_map,// Number of registers visible linear scan.48pd_first_cpu_reg = 0,49pd_last_cpu_reg = 9, // Others are unallocated (see FrameMap::initialize()).5051pd_nof_fpu_regs_frame_map = 16, // Number of registers used during code emission.52pd_nof_fcpu_regs_unallocated = 1, // Leave Z_F15 unallocated and use it as scratch register.53pd_nof_caller_save_fpu_regs_frame_map = pd_nof_fpu_regs_frame_map - pd_nof_fcpu_regs_unallocated, // Number of fpu registers killed by calls.54pd_nof_fpu_regs_reg_alloc = pd_nof_caller_save_fpu_regs_frame_map, // Number of registers that are visible to register allocator.55pd_nof_fpu_regs_linearscan = pd_nof_fpu_regs_frame_map, // Number of registers visible to linear scan.56pd_first_fpu_reg = pd_nof_cpu_regs_frame_map,57pd_last_fpu_reg = pd_first_fpu_reg + pd_nof_fpu_regs_frame_map - pd_nof_fcpu_regs_unallocated - 1,5859pd_nof_xmm_regs_linearscan = 0,60pd_nof_caller_save_xmm_regs = 0,61pd_first_xmm_reg = -1,62pd_last_xmm_reg = -163};6465// For debug info: a float value in a register is saved in single precision by runtime stubs.66enum {67pd_float_saved_as_double = false68};6970#endif // CPU_S390_C1_DEFS_S390_HPP717273