github.com/Rookout/GoSDK@v0.1.48/pkg/services/assembler/common/g_amd64_1.17.go (about)

     1  //go:build go1.17 && amd64
     2  // +build go1.17,amd64
     3  
     4  package common
     5  
     6  import (
     7  	"github.com/Rookout/GoSDK/pkg/services/assembler"
     8  	"golang.org/x/arch/x86/x86asm"
     9  )
    10  
    11  var InitError error
    12  var g = x86asm.R14
    13  
    14  
    15  func MovGToR12(b *assembler.Builder) *assembler.Instruction {
    16  	return b.Inst(assembler.AMOVQ, x86asm.R12, g)
    17  }