< prev index next >
src/hotspot/cpu/ppc/assembler_ppc.hpp
Print this page
rev 54542 : 8213084: Rework and enhance Print[Opto]Assembly output
Reviewed-by:
*** 927,941 ****
public:
// Helper functions for groups of instructions
enum Predict { pt = 1, pn = 0 }; // pt = predict taken
! // Instruction must start at passed address.
! static int instr_len(unsigned char *instr) { return BytesPerInstWord; }
! // longest instructions
! static int instr_maxlen() { return BytesPerInstWord; }
// Test if x is within signed immediate range for nbits.
static bool is_simm(int x, unsigned int nbits) {
assert(0 < nbits && nbits < 32, "out of bounds");
const int min = -(((int)1) << nbits-1);
--- 927,943 ----
public:
// Helper functions for groups of instructions
enum Predict { pt = 1, pn = 0 }; // pt = predict taken
! //---< calculate length of instruction >---
! // With PPC64 being a RISC architecture, this always is BytesPerInstWord
! // instruction must start at passed address
! static unsigned int instr_len(unsigned char *instr) { return BytesPerInstWord; }
! //---< longest instructions >---
! static unsigned int instr_maxlen() { return BytesPerInstWord; }
// Test if x is within signed immediate range for nbits.
static bool is_simm(int x, unsigned int nbits) {
assert(0 < nbits && nbits < 32, "out of bounds");
const int min = -(((int)1) << nbits-1);
< prev index next >