Mercurial > hg > truffle
diff src/os_cpu/solaris_sparc/vm/vm_version_solaris_sparc.cpp @ 3839:3d42f82cd811
7063628: Use cbcond on T4
Summary: Add new short branch instruction to Hotspot sparc assembler.
Reviewed-by: never, twisti, jrose
author | kvn |
---|---|
date | Thu, 21 Jul 2011 11:25:07 -0700 |
parents | c52cba2a3359 |
children | 8cb110fd7627 |
line wrap: on
line diff
--- a/src/os_cpu/solaris_sparc/vm/vm_version_solaris_sparc.cpp Thu Jul 21 08:38:25 2011 -0700 +++ b/src/os_cpu/solaris_sparc/vm/vm_version_solaris_sparc.cpp Thu Jul 21 11:25:07 2011 -0700 @@ -114,6 +114,11 @@ #endif if (av & AV_SPARC_VIS3) features |= vis3_instructions_m; +#ifndef AV_SPARC_CBCOND +#define AV_SPARC_CBCOND 0x10000000 /* compare and branch instrs supported */ +#endif + if (av & AV_SPARC_CBCOND) features |= cbcond_instructions_m; + } else { // getisax(2) failed, use the old legacy code. #ifndef PRODUCT