cmd/dist: fix arm vfp detection

* 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 <minux@golang.org>
This commit is contained in:
Dave Cheney 2015-01-11 06:12:20 +00:00
parent 20a10e7ddd
commit d369f97342
1 changed files with 4 additions and 4 deletions

View File

@ -5,11 +5,11 @@
#include "textflag.h" #include "textflag.h"
// try to run "vmov.f64 d0, d0" instruction // try to run "vmov.f64 d0, d0" instruction
TEXT useVFPv1(SB),NOSPLIT,$0 TEXT ·useVFPv1(SB),NOSPLIT,$0
VMOV.F64 D0, D0 WORD $0xeeb00b40 // vomv.f64 d0, d0
RET RET
// try to run VFPv3-only "vmov.f64 d0, #112" instruction // try to run VFPv3-only "vmov.f64 d0, #112" instruction
TEXT useVFPv3(SB),NOSPLIT,$0 TEXT ·useVFPv3(SB),NOSPLIT,$0
VMOV.F64 $112, D0 WORD $0xeeb70b00 // vmov.f64 d0, #112
RET RET