1
0
mirror of https://github.com/golang/go synced 2024-11-19 11:04:47 -07:00

[dev.cc] 9a: make RET a synonym for RETURN; use "g" instead of "R30"

Previously, 9a was the only assembler that had a different
name for RET, causing unnecessary friction in simple files
that otherwise assembled on all architectures.  Add RET so
these work on 9a.

This also renames "R30" to "g" to avoid unintentionally
clobbering g in assembly code.  This parallels a change made
to 5a.

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/178030043
This commit is contained in:
Austin Clements 2014-11-18 15:18:52 -05:00
parent 1a68ac2538
commit cf06ea68d5

View File

@ -250,7 +250,7 @@ struct
"R27", LREG, 27, "R27", LREG, 27,
"R28", LREG, 28, "R28", LREG, 28,
"R29", LREG, 29, "R29", LREG, 29,
"R30", LREG, 30, "g", LREG, 30, // avoid unintentionally clobbering g using R30
"R31", LREG, 31, "R31", LREG, 31,
"F", LF, 0, "F", LF, 0,
@ -488,6 +488,7 @@ struct
"SYSCALL", LNOP, ASYSCALL, "SYSCALL", LNOP, ASYSCALL,
"UNDEF", LNOP, AUNDEF, "UNDEF", LNOP, AUNDEF,
"RET", LRETRN, ARETURN,
"RETURN", LRETRN, ARETURN, "RETURN", LRETRN, ARETURN,
"RFI", LRETRN, ARFI, "RFI", LRETRN, ARFI,
"RFCI", LRETRN, ARFCI, "RFCI", LRETRN, ARFCI,