Mercurial > hg > truffle
comparison src/cpu/sparc/vm/vm_version_sparc.cpp @ 643:c771b7f43bbf
6378821: bitCount() should use POPC on SPARC processors and AMD+10h
Summary: bitCount() should use POPC on SPARC processors where POPC is implemented directly in hardware.
Reviewed-by: kvn, never
author | twisti |
---|---|
date | Fri, 13 Mar 2009 11:35:17 -0700 |
parents | 660978a2a31a |
children | f6da6f0174ac |
comparison
equal
deleted
inserted
replaced
642:660978a2a31a | 643:c771b7f43bbf |
---|---|
90 OptoLoopAlignment = 4; | 90 OptoLoopAlignment = 4; |
91 } | 91 } |
92 #endif | 92 #endif |
93 } | 93 } |
94 | 94 |
95 // Use hardware population count instruction if available. | |
96 if (has_hardware_popc()) { | |
97 if (FLAG_IS_DEFAULT(UsePopCountInstruction)) { | |
98 UsePopCountInstruction = true; | |
99 } | |
100 } | |
101 | |
95 char buf[512]; | 102 char buf[512]; |
96 jio_snprintf(buf, sizeof(buf), "%s%s%s%s%s%s%s%s%s%s%s", | 103 jio_snprintf(buf, sizeof(buf), "%s%s%s%s%s%s%s%s%s%s%s%s", |
97 (has_v8() ? ", has_v8" : ""), | 104 (has_v8() ? ", has_v8" : ""), |
98 (has_v9() ? ", has_v9" : ""), | 105 (has_v9() ? ", has_v9" : ""), |
106 (has_hardware_popc() ? ", popc" : ""), | |
99 (has_vis1() ? ", has_vis1" : ""), | 107 (has_vis1() ? ", has_vis1" : ""), |
100 (has_vis2() ? ", has_vis2" : ""), | 108 (has_vis2() ? ", has_vis2" : ""), |
101 (is_ultra3() ? ", is_ultra3" : ""), | 109 (is_ultra3() ? ", is_ultra3" : ""), |
102 (is_sun4v() ? ", is_sun4v" : ""), | 110 (is_sun4v() ? ", is_sun4v" : ""), |
103 (is_niagara1() ? ", is_niagara1" : ""), | 111 (is_niagara1() ? ", is_niagara1" : ""), |