comparison src/cpu/x86/vm/x86_32.ad @ 5934:61b82be3b1ff

7152957: VM crashes with assert(false) failed: bad AD file Reviewed-by: kvn, never Contributed-by: nils.eliasson@oracle.com
author never
date Mon, 12 Mar 2012 15:28:07 -0700
parents 9b8ce46870df
children 6759698e3140
comparison
equal deleted inserted replaced
5933:fde683df4c27 5934:61b82be3b1ff
1291 1291
1292 const bool Matcher::match_rule_supported(int opcode) { 1292 const bool Matcher::match_rule_supported(int opcode) {
1293 if (!has_match_rule(opcode)) 1293 if (!has_match_rule(opcode))
1294 return false; 1294 return false;
1295 1295
1296 switch (opcode) {
1297 case Op_PopCountI:
1298 case Op_PopCountL:
1299 if (!UsePopCountInstruction)
1300 return false;
1301 break;
1302 }
1303
1296 return true; // Per default match rules are supported. 1304 return true; // Per default match rules are supported.
1297 } 1305 }
1298 1306
1299 int Matcher::regnum_to_fpu_offset(int regnum) { 1307 int Matcher::regnum_to_fpu_offset(int regnum) {
1300 return regnum - 32; // The FP registers are in the second chunk 1308 return regnum - 32; // The FP registers are in the second chunk