Source file src/cmd/vendor/golang.org/x/arch/loong64/loong64asm/gnu.go
1 // Copyright 2024 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 package loong64asm 6 7 import ( 8 "strings" 9 ) 10 11 // GNUSyntax returns the GNU assembler syntax for the instruction, as defined by GNU binutils. 12 // This form typically matches the syntax defined in the Loong64 Reference Manual. See 13 // https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html 14 func GNUSyntax(inst Inst) string { 15 return strings.ToLower(inst.String()) 16 } 17