Text file src/cmd/asm/internal/asm/testdata/loong64.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 "../../../../../runtime/textflag.h" 6 // TODO: cover more instruction 7 8 TEXT foo(SB),DUPOK|NOSPLIT,$0 9 JAL 1(PC) //CALL 1(PC) //00040054 10 JAL (R4) //CALL (R4) //8100004c 11 // relocation in play so the assembled offset should be 0 12 JAL foo(SB) //CALL foo(SB) //00000054 13