diff options
author | Keith Randall <khr@golang.org> | 2020-06-15 22:52:56 -0700 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2020-06-18 20:58:26 +0000 |
commit | a07e28194a05800215efe192d2ff840f339924f0 (patch) | |
tree | f8ba61d18ba9619f41133b3007232f3f00900622 /src/cmd/compile/internal/ssa/opGen.go | |
parent | 40ef1faabc44ab8ea28a1cf282ecab723ecb0394 (diff) | |
download | go-a07e28194a05800215efe192d2ff840f339924f0.tar.gz go-a07e28194a05800215efe192d2ff840f339924f0.zip |
cmd/compile: redo flag constant ops for arm64
Fixes the *noov opcodes so they handle a constant argument properly.
Most of the infrastructure for this CL is in CL 238077 (the arm32 one).
Fixes #39505
Change-Id: Id424a4e18964b848f05aa42f4d78e5f2e2cdf43b
Reviewed-on: https://go-review.googlesource.com/c/go/+/237999
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/cmd/compile/internal/ssa/opGen.go')
-rw-r--r-- | src/cmd/compile/internal/ssa/opGen.go | 33 |
1 files changed, 5 insertions, 28 deletions
diff --git a/src/cmd/compile/internal/ssa/opGen.go b/src/cmd/compile/internal/ssa/opGen.go index 48edb3e3af..d27682e3b3 100644 --- a/src/cmd/compile/internal/ssa/opGen.go +++ b/src/cmd/compile/internal/ssa/opGen.go @@ -1554,11 +1554,7 @@ const ( OpARM64LoweredGetClosurePtr OpARM64LoweredGetCallerSP OpARM64LoweredGetCallerPC - OpARM64FlagEQ - OpARM64FlagLT_ULT - OpARM64FlagLT_UGT - OpARM64FlagGT_UGT - OpARM64FlagGT_ULT + OpARM64FlagConstant OpARM64InvertFlags OpARM64LDAR OpARM64LDARB @@ -20498,29 +20494,10 @@ var opcodeTable = [...]opInfo{ }, }, { - name: "FlagEQ", - argLen: 0, - reg: regInfo{}, - }, - { - name: "FlagLT_ULT", - argLen: 0, - reg: regInfo{}, - }, - { - name: "FlagLT_UGT", - argLen: 0, - reg: regInfo{}, - }, - { - name: "FlagGT_UGT", - argLen: 0, - reg: regInfo{}, - }, - { - name: "FlagGT_ULT", - argLen: 0, - reg: regInfo{}, + name: "FlagConstant", + auxType: auxFlagConstant, + argLen: 0, + reg: regInfo{}, }, { name: "InvertFlags", |