aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/rewriteARM64.go
diff options
context:
space:
mode:
authorCuong Manh Le <cuong.manhle.vn@gmail.com>2020-04-22 00:52:19 +0700
committerCuong Manh Le <cuong.manhle.vn@gmail.com>2020-04-22 08:04:58 +0000
commit79395c55e27618c1d48218274498d8390705979c (patch)
tree1dd0ef66b0c9c2a2e269c47358bb5bd63e43f7b5 /src/cmd/compile/internal/ssa/rewriteARM64.go
parentb71eafbcece175db33acfb205e9090ca99a8f984 (diff)
downloadgo-79395c55e27618c1d48218274498d8390705979c.tar.gz
go-79395c55e27618c1d48218274498d8390705979c.zip
cmd/compile: remove ntz function
Use ntzX variants instead. Passes toolstash-check -a. Change-Id: I7a627f46f75c3d339034bd3e81c190cea5409c88 Reviewed-on: https://go-review.googlesource.com/c/go/+/229140 Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com> Reviewed-by: Michael Munday <mike.munday@ibm.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/ssa/rewriteARM64.go')
-rw-r--r--src/cmd/compile/internal/ssa/rewriteARM64.go32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/cmd/compile/internal/ssa/rewriteARM64.go b/src/cmd/compile/internal/ssa/rewriteARM64.go
index 768c179124..c77cf8978a 100644
--- a/src/cmd/compile/internal/ssa/rewriteARM64.go
+++ b/src/cmd/compile/internal/ssa/rewriteARM64.go
@@ -26073,7 +26073,7 @@ func rewriteBlockARM64(b *Block) bool {
}
// match: (EQ (TSTconst [c] x) yes no)
// cond: oneBit(c)
- // result: (TBZ {ntz(c)} x yes no)
+ // result: (TBZ {int64(ntz64(c))} x yes no)
for b.Controls[0].Op == OpARM64TSTconst {
v_0 := b.Controls[0]
c := v_0.AuxInt
@@ -26082,12 +26082,12 @@ func rewriteBlockARM64(b *Block) bool {
break
}
b.resetWithControl(BlockARM64TBZ, x)
- b.Aux = ntz(c)
+ b.Aux = int64(ntz64(c))
return true
}
// match: (EQ (TSTWconst [c] x) yes no)
// cond: oneBit(int64(uint32(c)))
- // result: (TBZ {ntz(int64(uint32(c)))} x yes no)
+ // result: (TBZ {int64(ntz64(int64(uint32(c))))} x yes no)
for b.Controls[0].Op == OpARM64TSTWconst {
v_0 := b.Controls[0]
c := v_0.AuxInt
@@ -26096,7 +26096,7 @@ func rewriteBlockARM64(b *Block) bool {
break
}
b.resetWithControl(BlockARM64TBZ, x)
- b.Aux = ntz(int64(uint32(c)))
+ b.Aux = int64(ntz64(int64(uint32(c))))
return true
}
// match: (EQ (FlagEQ) yes no)
@@ -28256,7 +28256,7 @@ func rewriteBlockARM64(b *Block) bool {
}
// match: (NE (TSTconst [c] x) yes no)
// cond: oneBit(c)
- // result: (TBNZ {ntz(c)} x yes no)
+ // result: (TBNZ {int64(ntz64(c))} x yes no)
for b.Controls[0].Op == OpARM64TSTconst {
v_0 := b.Controls[0]
c := v_0.AuxInt
@@ -28265,12 +28265,12 @@ func rewriteBlockARM64(b *Block) bool {
break
}
b.resetWithControl(BlockARM64TBNZ, x)
- b.Aux = ntz(c)
+ b.Aux = int64(ntz64(c))
return true
}
// match: (NE (TSTWconst [c] x) yes no)
// cond: oneBit(int64(uint32(c)))
- // result: (TBNZ {ntz(int64(uint32(c)))} x yes no)
+ // result: (TBNZ {int64(ntz64(int64(uint32(c))))} x yes no)
for b.Controls[0].Op == OpARM64TSTWconst {
v_0 := b.Controls[0]
c := v_0.AuxInt
@@ -28279,7 +28279,7 @@ func rewriteBlockARM64(b *Block) bool {
break
}
b.resetWithControl(BlockARM64TBNZ, x)
- b.Aux = ntz(int64(uint32(c)))
+ b.Aux = int64(ntz64(int64(uint32(c))))
return true
}
// match: (NE (FlagEQ) yes no)
@@ -28436,7 +28436,7 @@ func rewriteBlockARM64(b *Block) bool {
}
// match: (NZ (ANDconst [c] x) yes no)
// cond: oneBit(c)
- // result: (TBNZ {ntz(c)} x yes no)
+ // result: (TBNZ {int64(ntz64(c))} x yes no)
for b.Controls[0].Op == OpARM64ANDconst {
v_0 := b.Controls[0]
c := v_0.AuxInt
@@ -28445,7 +28445,7 @@ func rewriteBlockARM64(b *Block) bool {
break
}
b.resetWithControl(BlockARM64TBNZ, x)
- b.Aux = ntz(c)
+ b.Aux = int64(ntz64(c))
return true
}
// match: (NZ (MOVDconst [0]) yes no)
@@ -28474,7 +28474,7 @@ func rewriteBlockARM64(b *Block) bool {
case BlockARM64NZW:
// match: (NZW (ANDconst [c] x) yes no)
// cond: oneBit(int64(uint32(c)))
- // result: (TBNZ {ntz(int64(uint32(c)))} x yes no)
+ // result: (TBNZ {int64(ntz64(int64(uint32(c))))} x yes no)
for b.Controls[0].Op == OpARM64ANDconst {
v_0 := b.Controls[0]
c := v_0.AuxInt
@@ -28483,7 +28483,7 @@ func rewriteBlockARM64(b *Block) bool {
break
}
b.resetWithControl(BlockARM64TBNZ, x)
- b.Aux = ntz(int64(uint32(c)))
+ b.Aux = int64(ntz64(int64(uint32(c))))
return true
}
// match: (NZW (MOVDconst [c]) yes no)
@@ -28680,7 +28680,7 @@ func rewriteBlockARM64(b *Block) bool {
case BlockARM64Z:
// match: (Z (ANDconst [c] x) yes no)
// cond: oneBit(c)
- // result: (TBZ {ntz(c)} x yes no)
+ // result: (TBZ {int64(ntz64(c))} x yes no)
for b.Controls[0].Op == OpARM64ANDconst {
v_0 := b.Controls[0]
c := v_0.AuxInt
@@ -28689,7 +28689,7 @@ func rewriteBlockARM64(b *Block) bool {
break
}
b.resetWithControl(BlockARM64TBZ, x)
- b.Aux = ntz(c)
+ b.Aux = int64(ntz64(c))
return true
}
// match: (Z (MOVDconst [0]) yes no)
@@ -28718,7 +28718,7 @@ func rewriteBlockARM64(b *Block) bool {
case BlockARM64ZW:
// match: (ZW (ANDconst [c] x) yes no)
// cond: oneBit(int64(uint32(c)))
- // result: (TBZ {ntz(int64(uint32(c)))} x yes no)
+ // result: (TBZ {int64(ntz64(int64(uint32(c))))} x yes no)
for b.Controls[0].Op == OpARM64ANDconst {
v_0 := b.Controls[0]
c := v_0.AuxInt
@@ -28727,7 +28727,7 @@ func rewriteBlockARM64(b *Block) bool {
break
}
b.resetWithControl(BlockARM64TBZ, x)
- b.Aux = ntz(int64(uint32(c)))
+ b.Aux = int64(ntz64(int64(uint32(c))))
return true
}
// match: (ZW (MOVDconst [c]) yes no)