--- a/hotspot/src/cpu/x86/vm/x86_32.ad Wed Jan 20 04:56:51 2016 -0800
+++ b/hotspot/src/cpu/x86/vm/x86_32.ad Thu Jan 21 11:30:22 2016 +0000
@@ -968,14 +968,15 @@
case Op_VecS:
calc_size = 3+src_offset_size + 3+dst_offset_size;
break;
- case Op_VecD:
+ case Op_VecD: {
calc_size = 3+src_offset_size + 3+dst_offset_size;
- src_offset += 4;
- dst_offset += 4;
- src_offset_size = (src_offset == 0) ? 0 : ((src_offset < 0x80) ? 1 : 4);
- dst_offset_size = (dst_offset == 0) ? 0 : ((dst_offset < 0x80) ? 1 : 4);
+ int tmp_src_offset = src_offset + 4;
+ int tmp_dst_offset = dst_offset + 4;
+ src_offset_size = (tmp_src_offset == 0) ? 0 : ((tmp_src_offset < 0x80) ? 1 : 4);
+ dst_offset_size = (tmp_dst_offset == 0) ? 0 : ((tmp_dst_offset < 0x80) ? 1 : 4);
calc_size += 3+src_offset_size + 3+dst_offset_size;
break;
+ }
case Op_VecX:
case Op_VecY:
case Op_VecZ:
@@ -1020,7 +1021,7 @@
ShouldNotReachHere();
}
int size = __ offset() - offset;
- assert(size == calc_size, "incorrect size calculattion");
+ assert(size == calc_size, "incorrect size calculation");
return size;
#ifndef PRODUCT
} else if (!do_size) {