Text file src/internal/runtime/syscall/linux/asm_linux_s390x.s

     1  // Copyright 2022 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  #include "textflag.h"
     6  
     7  // func Syscall6(num, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, errno uintptr)
     8  TEXT ·Syscall6<ABIInternal>(SB),NOSPLIT,$0-80
     9  	MOVD	R2, R1
    10  	MOVD	R3, R2
    11  	MOVD	R4, R3
    12  	MOVD	R5, R4
    13  	MOVD	R6, R5
    14  	MOVD	R7, R6
    15  	MOVD	R8, R7
    16  	SYSCALL
    17  	MOVD	$0xfffffffffffff001, R8
    18  	CMPUBLT	R2, R8, ok
    19  	MOVD	$0, R3
    20  	NEG	R2, R4
    21  	MOVD    $-1, R2
    22  	RET
    23  ok:
    24  	MOVD	$0, R4
    25  	RET
    26  

View as plain text