Update to go1.25.0
This commit is contained in:
@@ -47,6 +47,7 @@ func convertNeqBool32(x uint32) bool {
|
||||
|
||||
func convertEqBool32(x uint32) bool {
|
||||
// ppc64x:"RLDICL",-"CMPW","XOR",-"ISEL"
|
||||
// amd64:"ANDL","XORL",-"BTL",-"SETCC"
|
||||
return x&1 == 0
|
||||
}
|
||||
|
||||
@@ -57,9 +58,34 @@ func convertNeqBool64(x uint64) bool {
|
||||
|
||||
func convertEqBool64(x uint64) bool {
|
||||
// ppc64x:"RLDICL","XOR",-"CMP",-"ISEL"
|
||||
// amd64:"ANDL","XORL",-"BTL",-"SETCC"
|
||||
return x&1 == 0
|
||||
}
|
||||
|
||||
func phiAnd(a, b bool) bool {
|
||||
var x bool
|
||||
// amd64:-"TESTB"
|
||||
if a {
|
||||
x = b
|
||||
} else {
|
||||
x = a
|
||||
}
|
||||
// amd64:"ANDL"
|
||||
return x
|
||||
}
|
||||
|
||||
func phiOr(a, b bool) bool {
|
||||
var x bool
|
||||
// amd64:-"TESTB"
|
||||
if a {
|
||||
x = a
|
||||
} else {
|
||||
x = b
|
||||
}
|
||||
// amd64:"ORL"
|
||||
return x
|
||||
}
|
||||
|
||||
func TestSetEq64(x uint64, y uint64) bool {
|
||||
// ppc64x/power10:"SETBC\tCR0EQ",-"ISEL"
|
||||
// ppc64x/power9:"CMP","ISEL",-"SETBC\tCR0EQ"
|
||||
|
||||
Reference in New Issue
Block a user