aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/opGen.go
diff options
context:
space:
mode:
authorMichael Munday <mike.munday@ibm.com>2020-04-16 11:40:09 +0100
committerMichael Munday <mike.munday@ibm.com>2020-04-17 14:54:05 +0000
commitb1cae8cd1d66714d7fe7e84eb6aea04986b797f1 (patch)
tree4cde6cd5a85b7d95cb4a5d1c13b2baf4cbd577bd /src/cmd/compile/internal/ssa/opGen.go
parent8ce21fae6009adc0d528945b09293ff2c4530364 (diff)
downloadgo-b1cae8cd1d66714d7fe7e84eb6aea04986b797f1.tar.gz
go-b1cae8cd1d66714d7fe7e84eb6aea04986b797f1.zip
cmd/compile: make some s390x rules use strongly typed aux values
This first pass makes the rules using the condition code mask (CCMask) and rotate parameters (RotateParams) aux values strongly typed. This required adding strongly typed aux handling to the block rulegen. More CLs like this to follow, but this is probably the most complex. Passes toolstash-check -all. Change-Id: Ie513b07d527f0c1b398d7748331442dcb5f7b17d Reviewed-on: https://go-review.googlesource.com/c/go/+/228518 Run-TryBot: Michael Munday <mike.munday@ibm.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/ssa/opGen.go')
-rw-r--r--src/cmd/compile/internal/ssa/opGen.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cmd/compile/internal/ssa/opGen.go b/src/cmd/compile/internal/ssa/opGen.go
index 2168d262aa..44c427ebe3 100644
--- a/src/cmd/compile/internal/ssa/opGen.go
+++ b/src/cmd/compile/internal/ssa/opGen.go
@@ -256,13 +256,13 @@ func (k BlockKind) String() string { return blockString[k] }
func (k BlockKind) AuxIntType() string {
switch k {
case BlockS390XCIJ:
- return "Int8"
+ return "int8"
case BlockS390XCGIJ:
- return "Int8"
+ return "int8"
case BlockS390XCLIJ:
- return "UInt8"
+ return "uint8"
case BlockS390XCLGIJ:
- return "UInt8"
+ return "uint8"
}
return ""
}
@@ -28569,7 +28569,7 @@ var opcodeTable = [...]opInfo{
},
{
name: "RXSBG",
- auxType: auxArchSpecific,
+ auxType: auxS390XRotateParams,
argLen: 2,
resultInArg0: true,
clobberFlags: true,
@@ -28655,7 +28655,7 @@ var opcodeTable = [...]opInfo{
},
{
name: "LOCGR",
- auxType: auxArchSpecific,
+ auxType: auxS390XCCMask,
argLen: 3,
resultInArg0: true,
asm: s390x.ALOCGR,