1
0
mirror of https://github.com/golang/go synced 2024-11-14 22:40:40 -07:00

cmd/compile/internal/ssa: fix the description of auxCCop as auxInt

auxCCop has been modified from aux to auxInt in CL 252517
This commit is contained in:
zhangjian 2024-04-21 19:37:23 +08:00
parent 7f76c00fc5
commit 78d1cf40f4
2 changed files with 2 additions and 2 deletions

View File

@ -353,6 +353,7 @@ const (
auxFloat32 // auxInt is a float32 (encoded with math.Float64bits)
auxFloat64 // auxInt is a float64 (encoded with math.Float64bits)
auxFlagConstant // auxInt is a flagConstant
auxCCop // auxInt is a ssa.Op that represents a flags-to-bool conversion (e.g. LessThan)
auxNameOffsetInt8 // aux is a &struct{Name ir.Name, Offset int64}; auxInt is index in parameter registers array
auxString // aux is a string
auxSym // aux is a symbol (a *gc.Node for locals, an *obj.LSym for globals, or nil for none)
@ -360,7 +361,6 @@ const (
auxSymValAndOff // aux is a symbol, auxInt is a ValAndOff
auxTyp // aux is a type
auxTypSize // aux is a type, auxInt is a size, must have Aux.(Type).Size() == AuxInt
auxCCop // aux is a ssa.Op that represents a flags-to-bool conversion (e.g. LessThan)
auxCall // aux is a *ssa.AuxCall
auxCallOff // aux is a *ssa.AuxCall, AuxInt is int64 param (in+out) size

View File

@ -228,7 +228,7 @@ func (v *Value) auxString() string {
}
return s + fmt.Sprintf(" [%s]", v.AuxValAndOff())
case auxCCop:
return fmt.Sprintf(" {%s}", Op(v.AuxInt))
return fmt.Sprintf(" [%s]", Op(v.AuxInt))
case auxS390XCCMask, auxS390XRotateParams:
return fmt.Sprintf(" {%v}", v.Aux)
case auxFlagConstant: