diff options
author | Alberto Donizetti <alb.donizetti@gmail.com> | 2018-04-09 14:24:35 +0200 |
---|---|---|
committer | Alberto Donizetti <alb.donizetti@gmail.com> | 2018-04-10 07:58:35 +0000 |
commit | d5ff631e6b86787857913049fc5312969211a1c7 (patch) | |
tree | 5719f75d97218572eaf4f382e2d6457a96f5c0d8 /test/codegen/arithmetic.go | |
parent | 49ed4cbe853e910b6f8d83012bc8b9afedb4b6b6 (diff) | |
download | go-git-d5ff631e6b86787857913049fc5312969211a1c7.tar.gz |
test/codegen: port last remaining misc bit/arithmetic tests
And delete them from asm_test.
Change-Id: I9a75efe9858ef9d7ac86065f860c2ae3f25b0941
Reviewed-on: https://go-review.googlesource.com/105597
Reviewed-by: Daniel Martà <mvdan@mvdan.cc>
Diffstat (limited to 'test/codegen/arithmetic.go')
-rw-r--r-- | test/codegen/arithmetic.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/codegen/arithmetic.go b/test/codegen/arithmetic.go index 0cd4d2ee23..d38f80c1e9 100644 --- a/test/codegen/arithmetic.go +++ b/test/codegen/arithmetic.go @@ -30,6 +30,11 @@ func Pow2Muls(n1, n2 int) (int, int) { return a, b } +func Mul_96(n int) int { + // amd64:`SHLQ\t[$]5`,`LEAQ\t\(.*\)\(.*\*2\),` + return n * 96 +} + // Multiplications merging tests func MergeMuls1(n int) int { |