From: ulan@chromium.org Date: Fri, 7 Dec 2012 15:28:40 +0000 (+0000) Subject: Define CAN_USE_VFP2/3_INSTRUCTIONS based on arm_neon and arm_fpu flags. X-Git-Tag: upstream/4.7.83~15469 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a1d10c69a1a97d1a613200817dba9975db6f8945;p=platform%2Fupstream%2Fv8.git Define CAN_USE_VFP2/3_INSTRUCTIONS based on arm_neon and arm_fpu flags. R=jkummerow@chromium.org Review URL: https://chromiumcodereview.appspot.com/11472023 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13175 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/build/common.gypi b/build/common.gypi index 03a0eca..e68ee15 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -143,12 +143,16 @@ 'CAN_USE_UNALIGNED_ACCESSES=0', ], }], - [ 'v8_can_use_vfp2_instructions=="true"', { + # NEON implies VFP3 and VFP3 implies VFP2. + [ 'v8_can_use_vfp2_instructions=="true" or arm_neon==1 or \ + arm_fpu=="vfpv3" or arm_fpu=="vfpv3-d16"', { 'defines': [ 'CAN_USE_VFP2_INSTRUCTIONS', ], }], - [ 'v8_can_use_vfp3_instructions=="true"', { + # NEON implies VFP3. + [ 'v8_can_use_vfp3_instructions=="true" or arm_neon==1 or \ + arm_fpu=="vfpv3" or arm_fpu=="vfpv3-d16"', { 'defines': [ 'CAN_USE_VFP3_INSTRUCTIONS', ],