diff options
| author | Balaram Makam <bmakam.qdt@qualcommdatacenter.com> | 2018-01-30 12:16:52 -0500 |
|---|---|---|
| committer | Cherry Zhang <cherryyz@google.com> | 2018-02-15 23:00:20 +0000 |
| commit | fcba05148f50449eb4c2d97ef69519f69707da61 (patch) | |
| tree | 351ee08728dca0798adc6a38e73a89ddbf148015 /src/cmd/asm | |
| parent | c26fac88d4bf96efc9ddb7c4553ae8fab3a7277f (diff) | |
| download | go-fcba05148f50449eb4c2d97ef69519f69707da61.tar.xz | |
cmd/compile: arm64 intrinsics for math/bits.OnesCount
This adds math/bits intrinsics for OnesCount on arm64.
name old time/op new time/op delta
OnesCount 3.81ns ± 0% 1.60ns ± 0% -57.96% (p=0.000 n=7+8)
OnesCount8 1.60ns ± 0% 1.60ns ± 0% ~ (all equal)
OnesCount16 2.41ns ± 0% 1.60ns ± 0% -33.61% (p=0.000 n=8+8)
OnesCount32 4.17ns ± 0% 1.60ns ± 0% -61.58% (p=0.000 n=8+8)
OnesCount64 3.80ns ± 0% 1.60ns ± 0% -57.84% (p=0.000 n=8+8)
Update #18616
Conflicts:
src/cmd/compile/internal/gc/asm_test.go
Change-Id: I63ac2f63acafdb1f60656ab8a56be0b326eec5cb
Reviewed-on: https://go-review.googlesource.com/90835
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/cmd/asm')
| -rw-r--r-- | src/cmd/asm/internal/asm/testdata/arm64enc.s | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/asm/internal/asm/testdata/arm64enc.s b/src/cmd/asm/internal/asm/testdata/arm64enc.s index b02e0b32ec..b684e5d9e0 100644 --- a/src/cmd/asm/internal/asm/testdata/arm64enc.s +++ b/src/cmd/asm/internal/asm/testdata/arm64enc.s @@ -388,6 +388,7 @@ TEXT asmtest(SB),DUPOK|NOSPLIT,$-8 UMULL R18, R22, R19 // d37eb29b UXTBW R2, R6 // 461c0053 UXTHW R7, R20 // f43c0053 + VCNT V0.B8, V0.B8 // 0058200e WFE // 5f2003d5 WFI // 7f2003d5 YIELD // 3f2003d5 |
