1800 FLAG_SET_DEFAULT(UseFastStosb, false);
1801 }
1802
1803 // For AMD Processors use XMM/YMM MOVDQU instructions
1804 // for Object Initialization as default
1805 if (is_amd() && cpu_family() >= 0x19) {
1806 if (FLAG_IS_DEFAULT(UseFastStosb)) {
1807 UseFastStosb = false;
1808 }
1809 }
1810
1811 #ifdef COMPILER2
1812 if (is_intel() && MaxVectorSize > 16) {
1813 if (FLAG_IS_DEFAULT(UseFastStosb)) {
1814 UseFastStosb = false;
1815 }
1816 }
1817 #endif
1818
1819 // Use XMM/YMM MOVDQU instruction for Object Initialization
1820 if (!UseFastStosb && UseUnalignedLoadStores) {
1821 if (FLAG_IS_DEFAULT(UseXMMForObjInit)) {
1822 UseXMMForObjInit = true;
1823 }
1824 } else if (UseXMMForObjInit) {
1825 warning("UseXMMForObjInit requires SSE2 and unaligned load/stores. Feature is switched off.");
1826 FLAG_SET_DEFAULT(UseXMMForObjInit, false);
1827 }
1828
1829 #ifdef COMPILER2
1830 if (FLAG_IS_DEFAULT(AlignVector)) {
1831 // Modern processors allow misaligned memory operations for vectors.
1832 AlignVector = !UseUnalignedLoadStores;
1833 }
1834 #endif // COMPILER2
1835
1836 if (FLAG_IS_DEFAULT(AllocatePrefetchInstr)) {
1837 if (AllocatePrefetchInstr == 3 && !supports_3dnow_prefetch()) {
1838 FLAG_SET_DEFAULT(AllocatePrefetchInstr, 0);
1839 } else if (!supports_sse() && supports_3dnow_prefetch()) {
1840 FLAG_SET_DEFAULT(AllocatePrefetchInstr, 3);
|
1800 FLAG_SET_DEFAULT(UseFastStosb, false);
1801 }
1802
1803 // For AMD Processors use XMM/YMM MOVDQU instructions
1804 // for Object Initialization as default
1805 if (is_amd() && cpu_family() >= 0x19) {
1806 if (FLAG_IS_DEFAULT(UseFastStosb)) {
1807 UseFastStosb = false;
1808 }
1809 }
1810
1811 #ifdef COMPILER2
1812 if (is_intel() && MaxVectorSize > 16) {
1813 if (FLAG_IS_DEFAULT(UseFastStosb)) {
1814 UseFastStosb = false;
1815 }
1816 }
1817 #endif
1818
1819 // Use XMM/YMM MOVDQU instruction for Object Initialization
1820 if (UseUnalignedLoadStores) {
1821 if (FLAG_IS_DEFAULT(UseXMMForObjInit)) {
1822 UseXMMForObjInit = true;
1823 }
1824 } else if (UseXMMForObjInit) {
1825 warning("UseXMMForObjInit requires SSE2 and unaligned load/stores. Feature is switched off.");
1826 FLAG_SET_DEFAULT(UseXMMForObjInit, false);
1827 }
1828
1829 #ifdef COMPILER2
1830 if (FLAG_IS_DEFAULT(AlignVector)) {
1831 // Modern processors allow misaligned memory operations for vectors.
1832 AlignVector = !UseUnalignedLoadStores;
1833 }
1834 #endif // COMPILER2
1835
1836 if (FLAG_IS_DEFAULT(AllocatePrefetchInstr)) {
1837 if (AllocatePrefetchInstr == 3 && !supports_3dnow_prefetch()) {
1838 FLAG_SET_DEFAULT(AllocatePrefetchInstr, 0);
1839 } else if (!supports_sse() && supports_3dnow_prefetch()) {
1840 FLAG_SET_DEFAULT(AllocatePrefetchInstr, 3);
|