]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1.11] reflect: fix s390x reflect method calls
authorKeith Randall <keithr@alum.mit.edu>
Sun, 30 Sep 2018 16:04:17 +0000 (09:04 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 1 Oct 2018 19:18:24 +0000 (19:18 +0000)
R0 isn't the zero register any more. Oops.

Update #27867

Change-Id: I46a975ed37d5e570afe2e228d3edf74949e08ad7
Reviewed-on: https://go-review.googlesource.com/138580
Reviewed-by: Michael Munday <mike.munday@ibm.com>
Reviewed-on: https://go-review.googlesource.com/138583
Run-TryBot: Keith Randall <khr@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Michael Munday <mike.munday@ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/reflect/asm_s390x.s

index 2ab5481c9bf3bc64c15173a4ffd09c3e8c260dd5..cb7954c900cb9f31d13edf49d682585e3b79ec9c 100644 (file)
@@ -14,7 +14,7 @@ TEXT ·makeFuncStub(SB),(NOSPLIT|WRAPPER),$32
        MOVD    R12, 8(R15)
        MOVD    $argframe+0(FP), R3
        MOVD    R3, 16(R15)
-       MOVB    R0, 32(R15)
+       MOVB    $0, 32(R15)
        ADD     $32, R15, R3
        MOVD    R3, 24(R15)
        BL      ·callReflect(SB)
@@ -29,7 +29,7 @@ TEXT ·methodValueCall(SB),(NOSPLIT|WRAPPER),$32
        MOVD    R12, 8(R15)
        MOVD    $argframe+0(FP), R3
        MOVD    R3, 16(R15)
-       MOVB    R0, 32(R15)
+       MOVB    $0, 32(R15)
        ADD     $32, R15, R3
        MOVD    R3, 24(R15)
        BL      ·callMethod(SB)