File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3387,8 +3387,7 @@ func samecheap(a *Node, b *Node) bool {
33873387// The result of walkrotate MUST be assigned back to n, e.g.
33883388// n.Left = walkrotate(n.Left)
33893389func walkrotate (n * Node ) * Node {
3390- //TODO: enable LROT on ARM64 once the old backend is gone
3391- if Thearch .LinkArch .InFamily (sys .MIPS64 , sys .ARM64 , sys .PPC64 ) {
3390+ if Thearch .LinkArch .InFamily (sys .MIPS64 , sys .PPC64 ) {
33923391 return n
33933392 }
33943393
@@ -3647,11 +3646,6 @@ ret:
36473646func walkdiv (n * Node , init * Nodes ) * Node {
36483647 // if >= 0, nr is 1<<pow // 1 if nr is negative.
36493648
3650- // TODO(minux)
3651- if Thearch .LinkArch .InFamily (sys .MIPS64 , sys .PPC64 ) {
3652- return n
3653- }
3654-
36553649 if n .Right .Op != OLITERAL {
36563650 return n
36573651 }
Original file line number Diff line number Diff line change @@ -54,8 +54,10 @@ var progtable = [ppc64.ALAST & obj.AMask]obj.ProgInfo{
5454 ppc64 .AEQV & obj .AMask : {Flags : gc .SizeQ | gc .LeftRead | gc .RegRead | gc .RightWrite },
5555 ppc64 .AMULLD & obj .AMask : {Flags : gc .SizeQ | gc .LeftRead | gc .RegRead | gc .RightWrite },
5656 ppc64 .AMULLW & obj .AMask : {Flags : gc .SizeL | gc .LeftRead | gc .RegRead | gc .RightWrite },
57- ppc64 .AMULHD & obj .AMask : {Flags : gc .SizeL | gc .LeftRead | gc .RegRead | gc .RightWrite },
58- ppc64 .AMULHDU & obj .AMask : {Flags : gc .SizeL | gc .LeftRead | gc .RegRead | gc .RightWrite },
57+ ppc64 .AMULHD & obj .AMask : {Flags : gc .SizeQ | gc .LeftRead | gc .RegRead | gc .RightWrite },
58+ ppc64 .AMULHDU & obj .AMask : {Flags : gc .SizeQ | gc .LeftRead | gc .RegRead | gc .RightWrite },
59+ ppc64 .AMULHW & obj .AMask : {Flags : gc .SizeL | gc .LeftRead | gc .RegRead | gc .RightWrite },
60+ ppc64 .AMULHWU & obj .AMask : {Flags : gc .SizeL | gc .LeftRead | gc .RegRead | gc .RightWrite },
5961 ppc64 .ADIVD & obj .AMask : {Flags : gc .SizeQ | gc .LeftRead | gc .RegRead | gc .RightWrite },
6062 ppc64 .ADIVDU & obj .AMask : {Flags : gc .SizeQ | gc .LeftRead | gc .RegRead | gc .RightWrite },
6163 ppc64 .ADIVW & obj .AMask : {Flags : gc .SizeL | gc .LeftRead | gc .RegRead | gc .RightWrite },
You can’t perform that action at this time.
0 commit comments