]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.typeparams] test: adjust codegen test for register ABI on ARM64
authorCherry Mui <cherryyz@google.com>
Tue, 1 Jun 2021 23:29:24 +0000 (19:29 -0400)
committerCherry Mui <cherryyz@google.com>
Thu, 3 Jun 2021 14:28:14 +0000 (14:28 +0000)
In codegen/arithmetic.go, previously there are MOVD's that match
for loads of arguments. With register ABI there are no more such
loads. Remove the MOVD matches.

Change-Id: I920ee2629c8c04d454f13a0c08e283d3528d9a64
Reviewed-on: https://go-review.googlesource.com/c/go/+/324251
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
test/codegen/arithmetic.go

index a27a17f6e112df3752870135b62b5e4440f39f97..eb0f338036c3c8e7907b670265cc361f0007186d 100644 (file)
@@ -202,7 +202,7 @@ func ConstDivs(n1 uint, n2 int) (uint, int) {
 
        // amd64:"MOVQ\t[$]-1085102592571150095","IMULQ",-"IDIVQ"
        // 386:"MOVL\t[$]-252645135","IMULL",-"IDIVL"
-       // arm64:`MOVD`,`SMULH`,-`DIV`
+       // arm64:`SMULH`,-`DIV`
        // arm:`MOVW`,`MUL`,-`.*udiv`
        b := n2 / 17 // signed
 
@@ -266,7 +266,7 @@ func ConstMods(n1 uint, n2 int) (uint, int) {
 
        // amd64:"MOVQ\t[$]-1085102592571150095","IMULQ",-"IDIVQ"
        // 386:"MOVL\t[$]-252645135","IMULL",-"IDIVL"
-       // arm64:`MOVD`,`SMULH`,-`DIV`
+       // arm64:`SMULH`,-`DIV`
        // arm:`MOVW`,`MUL`,-`.*udiv`
        b := n2 % 17 // signed