comparison src/cpu/x86/vm/x86.ad @ 6795:7eca5de9e0b6

7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement() Summary: use shorter instruction sequences for atomic add and atomic exchange when possible. Reviewed-by: kvn, jrose
author roland
date Thu, 20 Sep 2012 16:49:17 +0200
parents 137868b7aa6f
children 859c45fb8cea
comparison
equal deleted inserted replaced
6794:8ae8f9dd7099 6795:7eca5de9e0b6
499 if (!UsePopCountInstruction) 499 if (!UsePopCountInstruction)
500 return false; 500 return false;
501 break; 501 break;
502 case Op_MulVI: 502 case Op_MulVI:
503 if ((UseSSE < 4) && (UseAVX < 1)) // only with SSE4_1 or AVX 503 if ((UseSSE < 4) && (UseAVX < 1)) // only with SSE4_1 or AVX
504 return false;
505 break;
506 case Op_CompareAndSwapL:
507 #ifdef _LP64
508 case Op_CompareAndSwapP:
509 #endif
510 if (!VM_Version::supports_cx8())
504 return false; 511 return false;
505 break; 512 break;
506 } 513 }
507 514
508 return true; // Per default match rules are supported. 515 return true; // Per default match rules are supported.