annotate libgo/misc/cgo/test/issue9400/asm_s390x.s @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 // Copyright 2016 The Go Authors. All rights reserved.
kono
parents:
diff changeset
2 // Use of this source code is governed by a BSD-style
kono
parents:
diff changeset
3 // license that can be found in the LICENSE file.
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 // +build !gccgo
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 #include "textflag.h"
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 TEXT ·RewindAndSetgid(SB),NOSPLIT,$0-0
kono
parents:
diff changeset
10 // Rewind stack pointer so anything that happens on the stack
kono
parents:
diff changeset
11 // will clobber the test pattern created by the caller
kono
parents:
diff changeset
12 ADD $(1024 * 8), R15
kono
parents:
diff changeset
13
kono
parents:
diff changeset
14 // Ask signaller to setgid
kono
parents:
diff changeset
15 MOVD $·Baton(SB), R5
kono
parents:
diff changeset
16 MOVW $1, 0(R5)
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 // Wait for setgid completion
kono
parents:
diff changeset
19 loop:
kono
parents:
diff changeset
20 SYNC
kono
parents:
diff changeset
21 MOVW ·Baton(SB), R3
kono
parents:
diff changeset
22 CMPBNE R3, $0, loop
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 // Restore stack
kono
parents:
diff changeset
25 SUB $(1024 * 8), R15
kono
parents:
diff changeset
26 RET