Mercurial > hg > graal-jvmci-8
comparison src/cpu/x86/vm/vm_version_x86.cpp @ 23886:5601e440e5e7
8130150: Implement BigInteger.montgomeryMultiply intrinsic
Reviewed-by: kvn, mdoerr
author | vkempik |
---|---|
date | Fri, 04 Mar 2016 16:15:48 +0300 |
parents | 51c505229e71 |
children | 0cd040567d60 |
comparison
equal
deleted
inserted
replaced
23885:51c505229e71 | 23886:5601e440e5e7 |
---|---|
707 UseSquareToLenIntrinsic = true; | 707 UseSquareToLenIntrinsic = true; |
708 } | 708 } |
709 if (FLAG_IS_DEFAULT(UseMulAddIntrinsic)) { | 709 if (FLAG_IS_DEFAULT(UseMulAddIntrinsic)) { |
710 UseMulAddIntrinsic = true; | 710 UseMulAddIntrinsic = true; |
711 } | 711 } |
712 if (FLAG_IS_DEFAULT(UseMontgomeryMultiplyIntrinsic)) { | |
713 UseMontgomeryMultiplyIntrinsic = true; | |
714 } | |
715 if (FLAG_IS_DEFAULT(UseMontgomerySquareIntrinsic)) { | |
716 UseMontgomerySquareIntrinsic = true; | |
717 } | |
712 #else | 718 #else |
713 if (UseMultiplyToLenIntrinsic) { | 719 if (UseMultiplyToLenIntrinsic) { |
714 if (!FLAG_IS_DEFAULT(UseMultiplyToLenIntrinsic)) { | 720 if (!FLAG_IS_DEFAULT(UseMultiplyToLenIntrinsic)) { |
715 warning("multiplyToLen intrinsic is not available in 32-bit VM"); | 721 warning("multiplyToLen intrinsic is not available in 32-bit VM"); |
716 } | 722 } |
725 if (UseMulAddIntrinsic) { | 731 if (UseMulAddIntrinsic) { |
726 if (!FLAG_IS_DEFAULT(UseMulAddIntrinsic)) { | 732 if (!FLAG_IS_DEFAULT(UseMulAddIntrinsic)) { |
727 warning("mulAdd intrinsic is not available in 32-bit VM"); | 733 warning("mulAdd intrinsic is not available in 32-bit VM"); |
728 } | 734 } |
729 FLAG_SET_DEFAULT(UseMulAddIntrinsic, false); | 735 FLAG_SET_DEFAULT(UseMulAddIntrinsic, false); |
736 } | |
737 if (UseMontgomeryMultiplyIntrinsic) { | |
738 if (!FLAG_IS_DEFAULT(UseMontgomeryMultiplyIntrinsic)) { | |
739 warning("montgomeryMultiply intrinsic is not available in 32-bit VM"); | |
740 } | |
741 FLAG_SET_DEFAULT(UseMontgomeryMultiplyIntrinsic, false); | |
742 } | |
743 if (UseMontgomerySquareIntrinsic) { | |
744 if (!FLAG_IS_DEFAULT(UseMontgomerySquareIntrinsic)) { | |
745 warning("montgomerySquare intrinsic is not available in 32-bit VM"); | |
746 } | |
747 FLAG_SET_DEFAULT(UseMontgomerySquareIntrinsic, false); | |
730 } | 748 } |
731 #endif | 749 #endif |
732 #endif // COMPILER2 | 750 #endif // COMPILER2 |
733 | 751 |
734 // On new cpus instructions which update whole XMM register should be used | 752 // On new cpus instructions which update whole XMM register should be used |