Commit d369f973 authored by Dave Cheney's avatar Dave Cheney

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/2682Reviewed-by: default avatarMinux Ma <minux@golang.org>
parent 20a10e7d
...@@ -5,11 +5,11 @@ ...@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment