func lshConst64x64(v int64) int64 {
// riscv64:"SLLI",-"AND",-"SLTIU"
+ // ppc64le:"SLD"
+ // ppc64:"SLD"
return v << uint64(33)
}
func rshConst64Ux64(v uint64) uint64 {
// riscv64:"SRLI",-"AND",-"SLTIU"
+ // ppc64le:"SRD"
+ // ppc64:"SRD"
return v >> uint64(33)
}
func rshConst64x64(v int64) int64 {
// riscv64:"SRAI",-"OR",-"SLTIU"
+ // ppc64le:"SRAD"
+ // ppc64:"SRAD"
return v >> uint64(33)
}
func lshConst32x64(v int32) int32 {
// riscv64:"SLLI",-"AND",-"SLTIU"
+ // ppc64le:"SLW"
+ // ppc64:"SLW"
return v << uint64(29)
}
func rshConst32Ux64(v uint32) uint32 {
// riscv64:"SRLI",-"AND",-"SLTIU"
+ // ppc64le:"SRW"
+ // ppc64:"SRW"
return v >> uint64(29)
}
func rshConst32x64(v int32) int32 {
// riscv64:"SRAI",-"OR",-"SLTIU"
+ // ppc64le:"SRAW"
+ // ppc64:"SRAW"
return v >> uint64(29)
}
func lshConst64x32(v int64) int64 {
// riscv64:"SLLI",-"AND",-"SLTIU"
+ // ppc64le:"SLD"
+ // ppc64:"SLD"
return v << uint32(33)
}
func rshConst64Ux32(v uint64) uint64 {
// riscv64:"SRLI",-"AND",-"SLTIU"
+ // ppc64le:"SRD"
+ // ppc64:"SRD"
return v >> uint32(33)
}
func rshConst64x32(v int64) int64 {
// riscv64:"SRAI",-"OR",-"SLTIU"
+ // ppc64le:"SRAD"
+ // ppc64:"SRAD"
return v >> uint32(33)
}
func SliceClear(s []int) []int {
// amd64:`.*memclrNoHeapPointers`
+ // ppc64le:`.*memclrNoHeapPointers`
+ // ppc64:`.*memclrNoHeapPointers`
for i := range s {
s[i] = 0
}
func SliceClearPointers(s []*int) []*int {
// amd64:`.*memclrHasPointers`
+ // ppc64le:`.*memclrHasPointers`
+ // ppc64:`.*memclrHasPointers`
for i := range s {
s[i] = nil
}
// amd64:`.*runtime\.memclrNoHeapPointers`
// amd64:-`.*runtime\.makeslice`
// amd64:-`.*runtime\.panicmakeslicelen`
+ // ppc64le:`.*runtime\.memclrNoHeapPointers`
+ // ppc64le:-`.*runtime\.makeslice`
+ // ppc64le:-`.*runtime\.panicmakeslicelen`
+ // ppc64:`.*runtime\.memclrNoHeapPointers`
+ // ppc64:-`.*runtime\.makeslice`
+ // ppc64:-`.*runtime\.panicmakeslicelen`
return append(s, make([]int, 1<<2)...)
}
// amd64:`.*runtime\.memclrNoHeapPointers`
// amd64:-`.*runtime\.makeslice`
// amd64:-`.*runtime\.panicmakeslicelen`
+ // ppc64le:`.*runtime\.memclrNoHeapPointers`
+ // ppc64le:-`.*runtime\.makeslice`
+ // ppc64le:-`.*runtime\.panicmakeslicelen`
+ // ppc64:`.*runtime\.memclrNoHeapPointers`
+ // ppc64:-`.*runtime\.makeslice`
+ // ppc64:-`.*runtime\.panicmakeslicelen`
return append(s, make([]int, int64(1<<2))...)
}
// amd64:`.*runtime\.memclrNoHeapPointers`
// amd64:-`.*runtime\.makeslice`
// amd64:-`.*runtime\.panicmakeslicelen`
+ // ppc64le:`.*runtime\.memclrNoHeapPointers`
+ // ppc64le:-`.*runtime\.makeslice`
+ // ppc64le:-`.*runtime\.panicmakeslicelen`
+ // ppc64:`.*runtime\.memclrNoHeapPointers`
+ // ppc64:-`.*runtime\.makeslice`
+ // ppc64:-`.*runtime\.panicmakeslicelen`
return append(s, make([]int, uint64(1<<2))...)
}
// amd64:`.*runtime\.memclrNoHeapPointers`
// amd64:-`.*runtime\.makeslice`
// amd64:-`.*runtime\.panicmakeslicelen`
+ // ppc64le:`.*runtime\.memclrNoHeapPointers`
+ // ppc64le:-`.*runtime\.makeslice`
+ // ppc64le:-`.*runtime\.panicmakeslicelen`
+ // ppc64:`.*runtime\.memclrNoHeapPointers`
+ // ppc64:-`.*runtime\.makeslice`
+ // ppc64:-`.*runtime\.panicmakeslicelen`
return append(s, make([]int, uint(1<<2))...)
}
func SliceExtensionPointer(s []*int, l int) []*int {
// amd64:`.*runtime\.memclrHasPointers`
// amd64:-`.*runtime\.makeslice`
+ // ppc64le:`.*runtime\.memclrHasPointers`
+ // ppc64le:-`.*runtime\.makeslice`
+ // ppc64:`.*runtime\.memclrHasPointers`
+ // ppc64:-`.*runtime\.makeslice`
return append(s, make([]*int, l)...)
}
func SliceExtensionVar(s []byte, l int) []byte {
// amd64:`.*runtime\.memclrNoHeapPointers`
// amd64:-`.*runtime\.makeslice`
+ // ppc64le:`.*runtime\.memclrNoHeapPointers`
+ // ppc64le:-`.*runtime\.makeslice`
+ // ppc64:`.*runtime\.memclrNoHeapPointers`
+ // ppc64:-`.*runtime\.makeslice`
return append(s, make([]byte, l)...)
}
// amd64:`.*runtime\.mallocgc`
// amd64:`.*runtime\.memmove`
// amd64:-`.*runtime\.makeslice`
+ // ppc64le:`.*runtime\.mallocgc`
+ // ppc64le:`.*runtime\.memmove`
+ // ppc64le:-`.*runtime\.makeslice`
+ // ppc64:`.*runtime\.mallocgc`
+ // ppc64:`.*runtime\.memmove`
+ // ppc64:-`.*runtime\.makeslice`
a := make([]int, len(s))
copy(a, s)
return a
// amd64:`.*runtime\.makeslicecopy`
// amd64:-`.*runtime\.makeslice\(`
// amd64:-`.*runtime\.typedslicecopy
+ // ppc64le:`.*runtime\.makeslicecopy`
+ // ppc64le:-`.*runtime\.makeslice\(`
+ // ppc64le:-`.*runtime\.typedslicecopy
+ // ppc64:`.*runtime\.makeslicecopy`
+ // ppc64:-`.*runtime\.makeslice\(`
+ // ppc64:-`.*runtime\.typedslicecopy
a := make([]*int, len(s))
copy(a, s)
return a