< prev index next >
src/hotspot/cpu/ppc/assembler_ppc.hpp
Print this page
rev 54883 : 8213084: Rework and enhance Print[Opto]Assembly output
Reviewed-by:
@@ -927,15 +927,17 @@
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; }
+ //---< 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 int instr_maxlen() { 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 >