mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: cull some dead arch-specific Ops
Change-Id: Iee7daa5b91b7896ce857321e307f2ee47b7f095f Reviewed-on: https://go-review.googlesource.com/36906 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
5a75d6a08e
commit
c5fed5bb24
4 changed files with 0 additions and 21 deletions
|
|
@ -163,7 +163,6 @@ var goopnames = []string{
|
||||||
OCOM: "^",
|
OCOM: "^",
|
||||||
OCONTINUE: "continue",
|
OCONTINUE: "continue",
|
||||||
OCOPY: "copy",
|
OCOPY: "copy",
|
||||||
ODEC: "--",
|
|
||||||
ODELETE: "delete",
|
ODELETE: "delete",
|
||||||
ODEFER: "defer",
|
ODEFER: "defer",
|
||||||
ODIV: "/",
|
ODIV: "/",
|
||||||
|
|
@ -175,7 +174,6 @@ var goopnames = []string{
|
||||||
OGT: ">",
|
OGT: ">",
|
||||||
OIF: "if",
|
OIF: "if",
|
||||||
OIMAG: "imag",
|
OIMAG: "imag",
|
||||||
OINC: "++",
|
|
||||||
OIND: "*",
|
OIND: "*",
|
||||||
OLEN: "len",
|
OLEN: "len",
|
||||||
OLE: "<=",
|
OLE: "<=",
|
||||||
|
|
|
||||||
|
|
@ -152,15 +152,8 @@ var opnames = []string{
|
||||||
OVARKILL: "VARKILL",
|
OVARKILL: "VARKILL",
|
||||||
OVARLIVE: "VARLIVE",
|
OVARLIVE: "VARLIVE",
|
||||||
OINDREGSP: "INDREGSP",
|
OINDREGSP: "INDREGSP",
|
||||||
OCMP: "CMP",
|
|
||||||
ODEC: "DEC",
|
|
||||||
OINC: "INC",
|
|
||||||
OEXTEND: "EXTEND",
|
|
||||||
OHMUL: "HMUL",
|
OHMUL: "HMUL",
|
||||||
ORROTC: "RROTC",
|
|
||||||
ORETJMP: "RETJMP",
|
ORETJMP: "RETJMP",
|
||||||
OPS: "PS",
|
|
||||||
OPC: "PC",
|
|
||||||
OGETG: "GETG",
|
OGETG: "GETG",
|
||||||
OEND: "END",
|
OEND: "END",
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -369,11 +369,6 @@ func instrumentnode(np **Node, init *Nodes, wr int, skip int) {
|
||||||
|
|
||||||
goto ret
|
goto ret
|
||||||
|
|
||||||
// impossible nodes: only appear in backend.
|
|
||||||
case ORROTC, OEXTEND:
|
|
||||||
yyerror("instrument: %v cannot exist now", n.Op)
|
|
||||||
goto ret
|
|
||||||
|
|
||||||
case OGETG:
|
case OGETG:
|
||||||
yyerror("instrument: OGETG can happen only in runtime which we don't instrument")
|
yyerror("instrument: OGETG can happen only in runtime which we don't instrument")
|
||||||
goto ret
|
goto ret
|
||||||
|
|
|
||||||
|
|
@ -494,15 +494,8 @@ const (
|
||||||
OINDREGSP // offset plus indirect of REGSP, such as 8(SP).
|
OINDREGSP // offset plus indirect of REGSP, such as 8(SP).
|
||||||
|
|
||||||
// arch-specific opcodes
|
// arch-specific opcodes
|
||||||
OCMP // compare: ACMP.
|
|
||||||
ODEC // decrement: ADEC.
|
|
||||||
OINC // increment: AINC.
|
|
||||||
OEXTEND // extend: ACWD/ACDQ/ACQO.
|
|
||||||
OHMUL // high mul: AMUL/AIMUL for unsigned/signed (OMUL uses AIMUL for both).
|
OHMUL // high mul: AMUL/AIMUL for unsigned/signed (OMUL uses AIMUL for both).
|
||||||
ORROTC // right rotate-carry: ARCR.
|
|
||||||
ORETJMP // return to other function
|
ORETJMP // return to other function
|
||||||
OPS // compare parity set (for x86 NaN check)
|
|
||||||
OPC // compare parity clear (for x86 NaN check)
|
|
||||||
OGETG // runtime.getg() (read g pointer)
|
OGETG // runtime.getg() (read g pointer)
|
||||||
|
|
||||||
OEND
|
OEND
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue