...

Text file src/cmd/compile/internal/ssa/flags_amd64_test.s

Documentation: cmd/compile/internal/ssa

     1// Copyright 2020 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
     7TEXT ·asmAddFlags(SB),NOSPLIT,$0-24
     8	MOVQ	x+0(FP), AX
     9	ADDQ	y+8(FP), AX
    10	PUSHFQ
    11	POPQ	AX
    12	MOVQ	AX, ret+16(FP)
    13	RET
    14
    15TEXT ·asmSubFlags(SB),NOSPLIT,$0-24
    16	MOVQ	x+0(FP), AX
    17	SUBQ	y+8(FP), AX
    18	PUSHFQ
    19	POPQ	AX
    20	MOVQ	AX, ret+16(FP)
    21	RET
    22
    23TEXT ·asmAndFlags(SB),NOSPLIT,$0-24
    24	MOVQ	x+0(FP), AX
    25	ANDQ	y+8(FP), AX
    26	PUSHFQ
    27	POPQ	AX
    28	MOVQ	AX, ret+16(FP)
    29	RET

View as plain text