Skip to content

Commit

Permalink
cmd/dist: fix arm vfp detection
Browse files Browse the repository at this point in the history
* Use WORD declaration so 5a can't rewrite the instruction or complain
  about forms it doesn't know about.
* Add the interpunct to function declaration.

Change-Id: I8494548db21b3ea52f0e1e0e547d9ead8b93dfd1
Reviewed-on: https://go-review.googlesource.com/2682
Reviewed-by: Minux Ma <[email protected]>
  • Loading branch information
davecheney committed Jan 12, 2015
1 parent 20a10e7 commit d369f97
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cmd/dist/vfp_arm.s
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
#include "textflag.h"

// try to run "vmov.f64 d0, d0" instruction
TEXT useVFPv1(SB),NOSPLIT,$0
VMOV.F64 D0, D0
TEXT ·useVFPv1(SB),NOSPLIT,$0
WORD $0xeeb00b40 // vomv.f64 d0, d0
RET

// try to run VFPv3-only "vmov.f64 d0, #112" instruction
TEXT useVFPv3(SB),NOSPLIT,$0
VMOV.F64 $112, D0
TEXT ·useVFPv3(SB),NOSPLIT,$0
WORD $0xeeb70b00 // vmov.f64 d0, #112
RET

0 comments on commit d369f97

Please sign in to comment.